Reinserts original comments
This commit is contained in:
112 files changed
+7113
-5131
No files matched your search
@@ -1,5 +1,10 @@
|
||||
|
||||
|
||||
/*
|
||||
* @RDE_HEADER@
|
||||
* Worker for Tetra Simulation
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -29,21 +34,21 @@ NGL::INGLLogger &m_logger;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
// PU simulation vars:
|
||||
uint32_t eqId;
|
||||
uint32_t issi;
|
||||
QPointF posUTM;
|
||||
|
||||
|
||||
// PU login-state vars:
|
||||
bool isLogin;
|
||||
bool isValidBITE;
|
||||
TrainingAreaBase::TetraIcd::VulnerabilityState vbg;
|
||||
|
||||
|
||||
int patternInList;
|
||||
int stepInPattern;
|
||||
// pattern vars:
|
||||
int patternInList; // >-| which pattern to take from the pattern list
|
||||
int stepInPattern; // <-| which step we have in the current pattern (see "patternInList" above)
|
||||
|
||||
|
||||
// x seconds, for a Player to respawn [maximum / mininum]
|
||||
uint32_t deathTicks;
|
||||
uint32_t minimumDeathTicks;
|
||||
uint32_t maximumDeathTicks;
|
||||
@@ -64,12 +69,12 @@ public:
|
||||
randomizeDeathTicks();
|
||||
}
|
||||
|
||||
bool isEndOfTicks()
|
||||
bool isEndOfTicks() // gives TRUE if deathTicks is lower than 1 and randomizes deathTicks again, so this function can be reused everytime
|
||||
{
|
||||
deathTicks--;
|
||||
if (deathTicks < 1)
|
||||
{
|
||||
randomizeDeathTicks();
|
||||
randomizeDeathTicks(); // randomize again
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -87,8 +92,8 @@ public:
|
||||
|
||||
private Q_SLOTS:
|
||||
void onReadyRead();
|
||||
void onSendPlayerPositions();
|
||||
|
||||
void onSendPlayerPositions(); // -> nur senden, wenn isLogin & isValidBite für tln ok
|
||||
// wenn LoginOk von PrtCnv -> onSendBite(eqId)
|
||||
void onSocketError();
|
||||
void onSendNachforderungBroadcastTelegramm();
|
||||
void onSendDeaktivierungEinzelminen();
|
||||
@@ -112,7 +117,7 @@ protected:
|
||||
void sendBITE(uint32_t eqId, uint32_t issi);
|
||||
void sendTaktischerStatus(uint32_t eqId, uint32_t issi, TrainingAreaBase::TetraIcd::VulnerabilityState vbg);
|
||||
void sendSanitationReport(uint32_t eqId, uint32_t issi);
|
||||
|
||||
//void sendSanitation(uint32_t eqId, uint32_t issi);
|
||||
private:
|
||||
QTcpSocket *m_socket;
|
||||
QTimer *m_timer;
|
||||
|
||||
Reference in new issue
Block a user