|
@@ -13,7 +13,7 @@ Editor::~Editor()
|
|
{}
|
|
{}
|
|
|
|
|
|
// nicht constant
|
|
// nicht constant
|
|
-void Editor::setPfad( char *pfad )
|
|
|
|
|
|
+void Editor::setPfad( char* pfad )
|
|
{
|
|
{
|
|
this->pfad = pfad;
|
|
this->pfad = pfad;
|
|
this->pfad += "/editor";
|
|
this->pfad += "/editor";
|
|
@@ -24,7 +24,7 @@ void Editor::open()
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-bool Editor::nachricht( SKlient *k )
|
|
|
|
|
|
+bool Editor::nachricht( SKlient* k )
|
|
{
|
|
{
|
|
err = "";
|
|
err = "";
|
|
char n = 0;
|
|
char n = 0;
|
|
@@ -66,10 +66,10 @@ bool Editor::nachricht( SKlient *k )
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int width;
|
|
int width;
|
|
int height;
|
|
int height;
|
|
- d.lese( (char *)&width, 4 );
|
|
|
|
- d.lese( (char *)&height, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&width, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&width, 4 );
|
|
|
|
+ d.lese( (char*)&height, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&width, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
d.close();
|
|
d.close();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -86,12 +86,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/team";
|
|
tmpPf += "/team";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -103,12 +103,12 @@ bool Editor::nachricht( SKlient *k )
|
|
int id = *files->z( i );
|
|
int id = *files->z( i );
|
|
int maxWbZeit;
|
|
int maxWbZeit;
|
|
int punkte;
|
|
int punkte;
|
|
- team.lese( (char *)&maxWbZeit, 4 );
|
|
|
|
- team.lese( (char *)&punkte, 4 );
|
|
|
|
|
|
+ team.lese( (char*)&maxWbZeit, 4 );
|
|
|
|
+ team.lese( (char*)&punkte, 4 );
|
|
team.close();
|
|
team.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxWbZeit, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&punkte, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxWbZeit, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&punkte, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -125,12 +125,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/player";
|
|
tmpPf += "/player";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -142,12 +142,12 @@ bool Editor::nachricht( SKlient *k )
|
|
int id = *files->z( i );
|
|
int id = *files->z( i );
|
|
int spawnX;
|
|
int spawnX;
|
|
int spawnY;
|
|
int spawnY;
|
|
- player.lese( (char *)&spawnX, 4 );
|
|
|
|
- player.lese( (char *)&spawnY, 4 );
|
|
|
|
|
|
+ player.lese( (char*)&spawnX, 4 );
|
|
|
|
+ player.lese( (char*)&spawnY, 4 );
|
|
player.close();
|
|
player.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&spawnX, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&spawnY, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&spawnX, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&spawnY, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -164,12 +164,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/bariere";
|
|
tmpPf += "/bariere";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -187,24 +187,24 @@ bool Editor::nachricht( SKlient *k )
|
|
int verschiebungWeite;
|
|
int verschiebungWeite;
|
|
int autoSchaltungMaxTime;
|
|
int autoSchaltungMaxTime;
|
|
int team;
|
|
int team;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&breite, 4 );
|
|
|
|
- object.lese( (char *)&height, 4 );
|
|
|
|
- object.lese( (char *)&style, 4 );
|
|
|
|
- object.lese( (char *)&verschiebungWeite, 4 );
|
|
|
|
- object.lese( (char *)&autoSchaltungMaxTime, 4 );
|
|
|
|
- object.lese( (char *)&team, 4 );
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&breite, 4 );
|
|
|
|
+ object.lese( (char*)&height, 4 );
|
|
|
|
+ object.lese( (char*)&style, 4 );
|
|
|
|
+ object.lese( (char*)&verschiebungWeite, 4 );
|
|
|
|
+ object.lese( (char*)&autoSchaltungMaxTime, 4 );
|
|
|
|
+ object.lese( (char*)&team, 4 );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&style, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&verschiebungWeite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&autoSchaltungMaxTime, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&team, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&style, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&verschiebungWeite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&autoSchaltungMaxTime, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&team, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -221,12 +221,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/base";
|
|
tmpPf += "/base";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -246,28 +246,28 @@ bool Editor::nachricht( SKlient *k )
|
|
int timerX;
|
|
int timerX;
|
|
int timerY;
|
|
int timerY;
|
|
int timerFarbe;
|
|
int timerFarbe;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&breite, 4 );
|
|
|
|
- object.lese( (char *)&height, 4 );
|
|
|
|
- object.lese( (char *)&maxTime, 4 );
|
|
|
|
- object.lese( (char *)&team, 4 );
|
|
|
|
- object.lese( (char *)&showTimer, 1 );
|
|
|
|
- object.lese( (char *)&timerX, 4 );
|
|
|
|
- object.lese( (char *)&timerY, 4 );
|
|
|
|
- object.lese( (char *)&timerFarbe, 4 );
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&breite, 4 );
|
|
|
|
+ object.lese( (char*)&height, 4 );
|
|
|
|
+ object.lese( (char*)&maxTime, 4 );
|
|
|
|
+ object.lese( (char*)&team, 4 );
|
|
|
|
+ object.lese( (char*)&showTimer, 1 );
|
|
|
|
+ object.lese( (char*)&timerX, 4 );
|
|
|
|
+ object.lese( (char*)&timerY, 4 );
|
|
|
|
+ object.lese( (char*)&timerFarbe, 4 );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxTime, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&team, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&showTimer, 1 );
|
|
|
|
- k->sendeEncrypted( (char *)&timerX, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&timerY, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&timerFarbe, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxTime, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&team, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&showTimer, 1 );
|
|
|
|
+ k->sendeEncrypted( (char*)&timerX, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&timerY, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&timerFarbe, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -284,12 +284,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/drop";
|
|
tmpPf += "/drop";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -307,28 +307,28 @@ bool Editor::nachricht( SKlient *k )
|
|
int numDrops;
|
|
int numDrops;
|
|
float wahrscheinlichkeit[ ITEMANZAHL ];
|
|
float wahrscheinlichkeit[ ITEMANZAHL ];
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- object.lese( (char *)&minX, 4 );
|
|
|
|
- object.lese( (char *)&minY, 4 );
|
|
|
|
- object.lese( (char *)&maxX, 4 );
|
|
|
|
- object.lese( (char *)&maxY, 4 );
|
|
|
|
- object.lese( (char *)&maxTime, 4 );
|
|
|
|
- object.lese( (char *)&numDrops, 4 );
|
|
|
|
|
|
+ object.lese( (char*)&minX, 4 );
|
|
|
|
+ object.lese( (char*)&minY, 4 );
|
|
|
|
+ object.lese( (char*)&maxX, 4 );
|
|
|
|
+ object.lese( (char*)&maxY, 4 );
|
|
|
|
+ object.lese( (char*)&maxTime, 4 );
|
|
|
|
+ object.lese( (char*)&numDrops, 4 );
|
|
for( int j = 0; j < ITEMANZAHL; j++ )
|
|
for( int j = 0; j < ITEMANZAHL; j++ )
|
|
- object.lese( (char *)&wahrscheinlichkeit[ j ], 4 );
|
|
|
|
- object.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len ];
|
|
|
|
|
|
+ object.lese( (char*)&wahrscheinlichkeit[ j ], 4 );
|
|
|
|
+ object.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len ];
|
|
object.lese( name, len );
|
|
object.lese( name, len );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&minX, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&minY, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxX, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxY, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxTime, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&numDrops, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&minX, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&minY, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxX, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxY, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxTime, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&numDrops, 4 );
|
|
for( int j = 0; j < ITEMANZAHL; j++ )
|
|
for( int j = 0; j < ITEMANZAHL; j++ )
|
|
- k->sendeEncrypted( (char *)&wahrscheinlichkeit[ j ], 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&len, 1 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&wahrscheinlichkeit[ j ], 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&len, 1 );
|
|
k->sendeEncrypted( name, len );
|
|
k->sendeEncrypted( name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
}
|
|
}
|
|
@@ -347,12 +347,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/schalter";
|
|
tmpPf += "/schalter";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -367,18 +367,18 @@ bool Editor::nachricht( SKlient *k )
|
|
int breite;
|
|
int breite;
|
|
int height;
|
|
int height;
|
|
bool aktive;
|
|
bool aktive;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&breite, 4 );
|
|
|
|
- object.lese( (char *)&height, 4 );
|
|
|
|
- object.lese( (char *)&aktive, 1 );
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&breite, 4 );
|
|
|
|
+ object.lese( (char*)&height, 4 );
|
|
|
|
+ object.lese( (char*)&aktive, 1 );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&aktive, 1 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&aktive, 1 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -395,12 +395,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/schiene";
|
|
tmpPf += "/schiene";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -414,16 +414,16 @@ bool Editor::nachricht( SKlient *k )
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
int height;
|
|
int height;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&breite, 4 );
|
|
|
|
- object.lese( (char *)&height, 4 );
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&breite, 4 );
|
|
|
|
+ object.lese( (char*)&height, 4 );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -440,12 +440,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/timer";
|
|
tmpPf += "/timer";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -463,26 +463,26 @@ bool Editor::nachricht( SKlient *k )
|
|
bool runns;
|
|
bool runns;
|
|
int farbe;
|
|
int farbe;
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&maxZeit, 4 );
|
|
|
|
- object.lese( (char *)&sichtbar, 1 );
|
|
|
|
- object.lese( (char *)&autoWiederhohlung, 1 );
|
|
|
|
- object.lese( (char *)&runns, 1 );
|
|
|
|
- object.lese( (char *)&farbe, 4 );
|
|
|
|
- object.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len ];
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&maxZeit, 4 );
|
|
|
|
+ object.lese( (char*)&sichtbar, 1 );
|
|
|
|
+ object.lese( (char*)&autoWiederhohlung, 1 );
|
|
|
|
+ object.lese( (char*)&runns, 1 );
|
|
|
|
+ object.lese( (char*)&farbe, 4 );
|
|
|
|
+ object.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len ];
|
|
object.lese( name, len );
|
|
object.lese( name, len );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxZeit, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&sichtbar, 1 );
|
|
|
|
- k->sendeEncrypted( (char *)&autoWiederhohlung, 1 );
|
|
|
|
- k->sendeEncrypted( (char *)&runns, 1 );
|
|
|
|
- k->sendeEncrypted( (char *)&farbe, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&len, 1 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxZeit, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&sichtbar, 1 );
|
|
|
|
+ k->sendeEncrypted( (char*)&autoWiederhohlung, 1 );
|
|
|
|
+ k->sendeEncrypted( (char*)&runns, 1 );
|
|
|
|
+ k->sendeEncrypted( (char*)&farbe, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&len, 1 );
|
|
k->sendeEncrypted( name, len );
|
|
k->sendeEncrypted( name, len );
|
|
delete[]name;
|
|
delete[]name;
|
|
}
|
|
}
|
|
@@ -501,12 +501,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/tunnel";
|
|
tmpPf += "/tunnel";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -523,22 +523,22 @@ bool Editor::nachricht( SKlient *k )
|
|
int zielX;
|
|
int zielX;
|
|
int zielY;
|
|
int zielY;
|
|
bool aktiv;
|
|
bool aktiv;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&breite, 4 );
|
|
|
|
- object.lese( (char *)&height, 4 );
|
|
|
|
- object.lese( (char *)&zielX, 4 );
|
|
|
|
- object.lese( (char *)&zielY, 4 );
|
|
|
|
- object.lese( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&breite, 4 );
|
|
|
|
+ object.lese( (char*)&height, 4 );
|
|
|
|
+ object.lese( (char*)&zielX, 4 );
|
|
|
|
+ object.lese( (char*)&zielY, 4 );
|
|
|
|
+ object.lese( (char*)&aktiv, 1 );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&zielX, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&zielY, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&zielX, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&zielY, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&aktiv, 1 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -555,12 +555,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/umlenkung";
|
|
tmpPf += "/umlenkung";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -578,24 +578,24 @@ bool Editor::nachricht( SKlient *k )
|
|
int maxAbklingzeit;
|
|
int maxAbklingzeit;
|
|
bool drehend;
|
|
bool drehend;
|
|
bool aktiv;
|
|
bool aktiv;
|
|
- object.lese( (char *)&x, 4 );
|
|
|
|
- object.lese( (char *)&y, 4 );
|
|
|
|
- object.lese( (char *)&breite, 4 );
|
|
|
|
- object.lese( (char *)&height, 4 );
|
|
|
|
- object.lese( (char *)&richtung, 1 );
|
|
|
|
- object.lese( (char *)&maxAbklingzeit, 4 );
|
|
|
|
- object.lese( (char *)&drehend, 1 );
|
|
|
|
- object.lese( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ object.lese( (char*)&x, 4 );
|
|
|
|
+ object.lese( (char*)&y, 4 );
|
|
|
|
+ object.lese( (char*)&breite, 4 );
|
|
|
|
+ object.lese( (char*)&height, 4 );
|
|
|
|
+ object.lese( (char*)&richtung, 1 );
|
|
|
|
+ object.lese( (char*)&maxAbklingzeit, 4 );
|
|
|
|
+ object.lese( (char*)&drehend, 1 );
|
|
|
|
+ object.lese( (char*)&aktiv, 1 );
|
|
object.close();
|
|
object.close();
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&x, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&y, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&height, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&richtung, 1 );
|
|
|
|
- k->sendeEncrypted( (char *)&maxAbklingzeit, 4 );
|
|
|
|
- k->sendeEncrypted( (char *)&drehend, 1 );
|
|
|
|
- k->sendeEncrypted( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&richtung, 1 );
|
|
|
|
+ k->sendeEncrypted( (char*)&maxAbklingzeit, 4 );
|
|
|
|
+ k->sendeEncrypted( (char*)&drehend, 1 );
|
|
|
|
+ k->sendeEncrypted( (char*)&aktiv, 1 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -612,12 +612,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/trigger";
|
|
tmpPf += "/trigger";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -629,7 +629,7 @@ bool Editor::nachricht( SKlient *k )
|
|
object.open( Datei::Style::lesen );
|
|
object.open( Datei::Style::lesen );
|
|
char buffer[ 2048 ];
|
|
char buffer[ 2048 ];
|
|
int id = *files->z( i );
|
|
int id = *files->z( i );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
while( size > 0 )
|
|
while( size > 0 )
|
|
{
|
|
{
|
|
object.lese( buffer, MIN( 2048, (int)size ) );
|
|
object.lese( buffer, MIN( 2048, (int)size ) );
|
|
@@ -653,12 +653,12 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += "/variable";
|
|
tmpPf += "/variable";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- RCArray< Text > *files = d.getDateiListe();
|
|
|
|
|
|
+ RCArray< Text >* files = d.getDateiListe();
|
|
if( files )
|
|
if( files )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int anz = files->getEintragAnzahl();
|
|
int anz = files->getEintragAnzahl();
|
|
- k->sendeEncrypted( (char *)&anz, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
Text pf = tmpPf;
|
|
Text pf = tmpPf;
|
|
@@ -669,8 +669,8 @@ bool Editor::nachricht( SKlient *k )
|
|
__int64 size = object.getSize();
|
|
__int64 size = object.getSize();
|
|
object.open( Datei::Style::lesen );
|
|
object.open( Datei::Style::lesen );
|
|
char buffer[ 2048 ];
|
|
char buffer[ 2048 ];
|
|
- unsigned char len = (unsigned char)( files->z( i )->getLength() - 2 );
|
|
|
|
- k->sendeEncrypted( (char *)&len, 1 );
|
|
|
|
|
|
+ unsigned char len = (unsigned char)(files->z( i )->getLength() - 2);
|
|
|
|
+ k->sendeEncrypted( (char*)&len, 1 );
|
|
k->sendeEncrypted( *files->z( i ), len );
|
|
k->sendeEncrypted( *files->z( i ), len );
|
|
while( size > 0 )
|
|
while( size > 0 )
|
|
{
|
|
{
|
|
@@ -700,16 +700,16 @@ bool Editor::nachricht( SKlient *k )
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int width;
|
|
int width;
|
|
int height;
|
|
int height;
|
|
- k->getNachrichtEncrypted( (char *)&width, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&width, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
if( width <= 0 || height <= 0 )
|
|
if( width <= 0 || height <= 0 )
|
|
{
|
|
{
|
|
err = "Illegal Argument Exception";
|
|
err = "Illegal Argument Exception";
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- d.schreibe( (char *)&width, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&width, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
d.close();
|
|
d.close();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -724,7 +724,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/team/";
|
|
tmpPf += "/team/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -736,10 +736,10 @@ bool Editor::nachricht( SKlient *k )
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int maxWbZeit;
|
|
int maxWbZeit;
|
|
int punkte;
|
|
int punkte;
|
|
- k->getNachrichtEncrypted( (char *)&maxWbZeit, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&punkte, 4 );
|
|
|
|
- d.schreibe( (char *)&maxWbZeit, 4 );
|
|
|
|
- d.schreibe( (char *)&punkte, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxWbZeit, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&punkte, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxWbZeit, 4 );
|
|
|
|
+ d.schreibe( (char*)&punkte, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -755,7 +755,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/player/";
|
|
tmpPf += "/player/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -767,10 +767,10 @@ bool Editor::nachricht( SKlient *k )
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int spawnX;
|
|
int spawnX;
|
|
int spawnY;
|
|
int spawnY;
|
|
- k->getNachrichtEncrypted( (char *)&spawnX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&spawnY, 4 );
|
|
|
|
- d.schreibe( (char *)&spawnX, 4 );
|
|
|
|
- d.schreibe( (char *)&spawnY, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&spawnX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&spawnY, 4 );
|
|
|
|
+ d.schreibe( (char*)&spawnX, 4 );
|
|
|
|
+ d.schreibe( (char*)&spawnY, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -786,7 +786,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/bariere/";
|
|
tmpPf += "/bariere/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -804,22 +804,22 @@ bool Editor::nachricht( SKlient *k )
|
|
int verschiebungWeite;
|
|
int verschiebungWeite;
|
|
int autoSchaltungMaxTime;
|
|
int autoSchaltungMaxTime;
|
|
int team;
|
|
int team;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&style, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&verschiebungWeite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&autoSchaltungMaxTime, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&team, 4 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&style, 4 );
|
|
|
|
- d.schreibe( (char *)&verschiebungWeite, 4 );
|
|
|
|
- d.schreibe( (char *)&autoSchaltungMaxTime, 4 );
|
|
|
|
- d.schreibe( (char *)&team, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&style, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&verschiebungWeite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&autoSchaltungMaxTime, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&team, 4 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&style, 4 );
|
|
|
|
+ d.schreibe( (char*)&verschiebungWeite, 4 );
|
|
|
|
+ d.schreibe( (char*)&autoSchaltungMaxTime, 4 );
|
|
|
|
+ d.schreibe( (char*)&team, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -835,7 +835,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/base/";
|
|
tmpPf += "/base/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -855,26 +855,26 @@ bool Editor::nachricht( SKlient *k )
|
|
int timerX;
|
|
int timerX;
|
|
int timerY;
|
|
int timerY;
|
|
int timerFarbe;
|
|
int timerFarbe;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxTime, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&team, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&showTimer, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&timerX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&timerY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&timerFarbe, 4 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&maxTime, 4 );
|
|
|
|
- d.schreibe( (char *)&team, 4 );
|
|
|
|
- d.schreibe( (char *)&showTimer, 1 );
|
|
|
|
- d.schreibe( (char *)&timerX, 4 );
|
|
|
|
- d.schreibe( (char *)&timerY, 4 );
|
|
|
|
- d.schreibe( (char *)&timerFarbe, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxTime, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&team, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&showTimer, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&timerX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&timerY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&timerFarbe, 4 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxTime, 4 );
|
|
|
|
+ d.schreibe( (char*)&team, 4 );
|
|
|
|
+ d.schreibe( (char*)&showTimer, 1 );
|
|
|
|
+ d.schreibe( (char*)&timerX, 4 );
|
|
|
|
+ d.schreibe( (char*)&timerY, 4 );
|
|
|
|
+ d.schreibe( (char*)&timerFarbe, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -890,7 +890,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/drop/";
|
|
tmpPf += "/drop/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -908,26 +908,26 @@ bool Editor::nachricht( SKlient *k )
|
|
int numDrops;
|
|
int numDrops;
|
|
float wahrscheinlichkeit[ ITEMANZAHL ];
|
|
float wahrscheinlichkeit[ ITEMANZAHL ];
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&minX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&minY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxTime, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&numDrops, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&minX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&minY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxTime, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&numDrops, 4 );
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
- k->getNachrichtEncrypted( (char *)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len ];
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len ];
|
|
k->getNachrichtEncrypted( name, len );
|
|
k->getNachrichtEncrypted( name, len );
|
|
- d.schreibe( (char *)&minX, 4 );
|
|
|
|
- d.schreibe( (char *)&minY, 4 );
|
|
|
|
- d.schreibe( (char *)&maxX, 4 );
|
|
|
|
- d.schreibe( (char *)&maxY, 4 );
|
|
|
|
- d.schreibe( (char *)&maxTime, 4 );
|
|
|
|
- d.schreibe( (char *)&numDrops, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&minX, 4 );
|
|
|
|
+ d.schreibe( (char*)&minY, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxX, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxY, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxTime, 4 );
|
|
|
|
+ d.schreibe( (char*)&numDrops, 4 );
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
- d.schreibe( (char *)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
|
|
+ d.schreibe( (char*)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
d.schreibe( name, len );
|
|
d.schreibe( name, len );
|
|
delete[]name;
|
|
delete[]name;
|
|
d.close();
|
|
d.close();
|
|
@@ -945,7 +945,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/schalter/";
|
|
tmpPf += "/schalter/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -960,16 +960,16 @@ bool Editor::nachricht( SKlient *k )
|
|
int breite;
|
|
int breite;
|
|
int height;
|
|
int height;
|
|
bool aktive;
|
|
bool aktive;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&aktive, 1 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&aktive, 1 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&aktive, 1 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&aktive, 1 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -985,7 +985,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/schiene/";
|
|
tmpPf += "/schiene/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -999,14 +999,14 @@ bool Editor::nachricht( SKlient *k )
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
int height;
|
|
int height;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1022,7 +1022,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/timer/";
|
|
tmpPf += "/timer/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1040,24 +1040,24 @@ bool Editor::nachricht( SKlient *k )
|
|
bool runns;
|
|
bool runns;
|
|
int farbe;
|
|
int farbe;
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxZeit, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&sichtbar, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&autoWiederhohlung, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&runns, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&farbe, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len ];
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxZeit, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&sichtbar, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&autoWiederhohlung, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&runns, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&farbe, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len ];
|
|
k->getNachrichtEncrypted( name, len );
|
|
k->getNachrichtEncrypted( name, len );
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&maxZeit, 4 );
|
|
|
|
- d.schreibe( (char *)&sichtbar, 1 );
|
|
|
|
- d.schreibe( (char *)&autoWiederhohlung, 1 );
|
|
|
|
- d.schreibe( (char *)&runns, 1 );
|
|
|
|
- d.schreibe( (char *)&farbe, 4 );
|
|
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxZeit, 4 );
|
|
|
|
+ d.schreibe( (char*)&sichtbar, 1 );
|
|
|
|
+ d.schreibe( (char*)&autoWiederhohlung, 1 );
|
|
|
|
+ d.schreibe( (char*)&runns, 1 );
|
|
|
|
+ d.schreibe( (char*)&farbe, 4 );
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
d.schreibe( name, len );
|
|
d.schreibe( name, len );
|
|
delete[]name;
|
|
delete[]name;
|
|
d.close();
|
|
d.close();
|
|
@@ -1075,7 +1075,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/tunnel/";
|
|
tmpPf += "/tunnel/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1092,20 +1092,20 @@ bool Editor::nachricht( SKlient *k )
|
|
int zielX;
|
|
int zielX;
|
|
int zielY;
|
|
int zielY;
|
|
bool aktiv;
|
|
bool aktiv;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&zielX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&zielY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&aktiv, 1 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&zielX, 4 );
|
|
|
|
- d.schreibe( (char *)&zielY, 4 );
|
|
|
|
- d.schreibe( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&zielX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&zielY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&aktiv, 1 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&zielX, 4 );
|
|
|
|
+ d.schreibe( (char*)&zielY, 4 );
|
|
|
|
+ d.schreibe( (char*)&aktiv, 1 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1121,7 +1121,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/umlenkung/";
|
|
tmpPf += "/umlenkung/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1139,22 +1139,22 @@ bool Editor::nachricht( SKlient *k )
|
|
int maxAbklingzeit;
|
|
int maxAbklingzeit;
|
|
bool drehend;
|
|
bool drehend;
|
|
bool aktiv;
|
|
bool aktiv;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&richtung, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxAbklingzeit, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&drehend, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&aktiv, 1 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&richtung, 1 );
|
|
|
|
- d.schreibe( (char *)&maxAbklingzeit, 4 );
|
|
|
|
- d.schreibe( (char *)&drehend, 1 );
|
|
|
|
- d.schreibe( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&richtung, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxAbklingzeit, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&drehend, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&aktiv, 1 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&richtung, 1 );
|
|
|
|
+ d.schreibe( (char*)&maxAbklingzeit, 4 );
|
|
|
|
+ d.schreibe( (char*)&drehend, 1 );
|
|
|
|
+ d.schreibe( (char*)&aktiv, 1 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1170,7 +1170,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/trigger/";
|
|
tmpPf += "/trigger/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1196,9 +1196,9 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *originalName = new char[ len + 1 ];
|
|
|
|
- k->getNachrichtEncrypted( (char *)&originalName, len );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* originalName = new char[ len + 1 ];
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&originalName, len );
|
|
originalName[ len ] = 0;
|
|
originalName[ len ] = 0;
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/variable/";
|
|
tmpPf += "/variable/";
|
|
@@ -1206,9 +1206,9 @@ bool Editor::nachricht( SKlient *k )
|
|
tmpPf += ".v";
|
|
tmpPf += ".v";
|
|
Datei d;
|
|
Datei d;
|
|
d.setDatei( tmpPf );
|
|
d.setDatei( tmpPf );
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len + 1 ];
|
|
|
|
- k->getNachrichtEncrypted( (char *)&name, len );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len + 1 ];
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&name, len );
|
|
name[ len ] = 0;
|
|
name[ len ] = 0;
|
|
if( !Text( name ).istGleich( originalName ) )
|
|
if( !Text( name ).istGleich( originalName ) )
|
|
{
|
|
{
|
|
@@ -1227,7 +1227,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
__int64 size;
|
|
__int64 size;
|
|
- k->getNachrichtEncrypted( (char *)&size, 8 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&size, 8 );
|
|
char buffer[ 2048 ];
|
|
char buffer[ 2048 ];
|
|
while( size > 0 )
|
|
while( size > 0 )
|
|
{
|
|
{
|
|
@@ -1265,7 +1265,7 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
@@ -1274,22 +1274,22 @@ bool Editor::nachricht( SKlient *k )
|
|
int verschiebungWeite;
|
|
int verschiebungWeite;
|
|
int autoSchaltungMaxTime;
|
|
int autoSchaltungMaxTime;
|
|
int team;
|
|
int team;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&style, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&verschiebungWeite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&autoSchaltungMaxTime, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&team, 4 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&style, 4 );
|
|
|
|
- d.schreibe( (char *)&verschiebungWeite, 4 );
|
|
|
|
- d.schreibe( (char *)&autoSchaltungMaxTime, 4 );
|
|
|
|
- d.schreibe( (char *)&team, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&style, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&verschiebungWeite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&autoSchaltungMaxTime, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&team, 4 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&style, 4 );
|
|
|
|
+ d.schreibe( (char*)&verschiebungWeite, 4 );
|
|
|
|
+ d.schreibe( (char*)&autoSchaltungMaxTime, 4 );
|
|
|
|
+ d.schreibe( (char*)&team, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1319,7 +1319,7 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
@@ -1330,26 +1330,26 @@ bool Editor::nachricht( SKlient *k )
|
|
int timerX;
|
|
int timerX;
|
|
int timerY;
|
|
int timerY;
|
|
int timerFarbe;
|
|
int timerFarbe;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxTime, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&team, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&showTimer, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&timerX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&timerY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&timerFarbe, 4 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&maxTime, 4 );
|
|
|
|
- d.schreibe( (char *)&team, 4 );
|
|
|
|
- d.schreibe( (char *)&showTimer, 1 );
|
|
|
|
- d.schreibe( (char *)&timerX, 4 );
|
|
|
|
- d.schreibe( (char *)&timerY, 4 );
|
|
|
|
- d.schreibe( (char *)&timerFarbe, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxTime, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&team, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&showTimer, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&timerX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&timerY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&timerFarbe, 4 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxTime, 4 );
|
|
|
|
+ d.schreibe( (char*)&team, 4 );
|
|
|
|
+ d.schreibe( (char*)&showTimer, 1 );
|
|
|
|
+ d.schreibe( (char*)&timerX, 4 );
|
|
|
|
+ d.schreibe( (char*)&timerY, 4 );
|
|
|
|
+ d.schreibe( (char*)&timerFarbe, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1379,7 +1379,7 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int minX;
|
|
int minX;
|
|
int minY;
|
|
int minY;
|
|
int maxX;
|
|
int maxX;
|
|
@@ -1388,26 +1388,26 @@ bool Editor::nachricht( SKlient *k )
|
|
int numDrops;
|
|
int numDrops;
|
|
float wahrscheinlichkeit[ ITEMANZAHL ];
|
|
float wahrscheinlichkeit[ ITEMANZAHL ];
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&minX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&minY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxTime, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&numDrops, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&minX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&minY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxTime, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&numDrops, 4 );
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
- k->getNachrichtEncrypted( (char *)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len ];
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len ];
|
|
k->getNachrichtEncrypted( name, len );
|
|
k->getNachrichtEncrypted( name, len );
|
|
- d.schreibe( (char *)&minX, 4 );
|
|
|
|
- d.schreibe( (char *)&minY, 4 );
|
|
|
|
- d.schreibe( (char *)&maxX, 4 );
|
|
|
|
- d.schreibe( (char *)&maxY, 4 );
|
|
|
|
- d.schreibe( (char *)&maxTime, 4 );
|
|
|
|
- d.schreibe( (char *)&numDrops, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&minX, 4 );
|
|
|
|
+ d.schreibe( (char*)&minY, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxX, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxY, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxTime, 4 );
|
|
|
|
+ d.schreibe( (char*)&numDrops, 4 );
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
for( int i = 0; i < ITEMANZAHL; i++ )
|
|
- d.schreibe( (char *)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
|
|
+ d.schreibe( (char*)&wahrscheinlichkeit[ i ], 4 );
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
d.schreibe( name, len );
|
|
d.schreibe( name, len );
|
|
delete[]name;
|
|
delete[]name;
|
|
d.close();
|
|
d.close();
|
|
@@ -1439,22 +1439,22 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
int height;
|
|
int height;
|
|
bool aktive;
|
|
bool aktive;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&aktive, 1 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&aktive, 1 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&aktive, 1 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&aktive, 1 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1484,19 +1484,19 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
int height;
|
|
int height;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1526,7 +1526,7 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int maxZeit;
|
|
int maxZeit;
|
|
@@ -1535,24 +1535,24 @@ bool Editor::nachricht( SKlient *k )
|
|
bool runns;
|
|
bool runns;
|
|
int farbe;
|
|
int farbe;
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxZeit, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&sichtbar, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&autoWiederhohlung, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&runns, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&farbe, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len ];
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxZeit, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&sichtbar, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&autoWiederhohlung, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&runns, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&farbe, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len ];
|
|
k->getNachrichtEncrypted( name, len );
|
|
k->getNachrichtEncrypted( name, len );
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&maxZeit, 4 );
|
|
|
|
- d.schreibe( (char *)&sichtbar, 1 );
|
|
|
|
- d.schreibe( (char *)&autoWiederhohlung, 1 );
|
|
|
|
- d.schreibe( (char *)&runns, 1 );
|
|
|
|
- d.schreibe( (char *)&farbe, 4 );
|
|
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxZeit, 4 );
|
|
|
|
+ d.schreibe( (char*)&sichtbar, 1 );
|
|
|
|
+ d.schreibe( (char*)&autoWiederhohlung, 1 );
|
|
|
|
+ d.schreibe( (char*)&runns, 1 );
|
|
|
|
+ d.schreibe( (char*)&farbe, 4 );
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
d.schreibe( name, len );
|
|
d.schreibe( name, len );
|
|
delete[]name;
|
|
delete[]name;
|
|
d.close();
|
|
d.close();
|
|
@@ -1584,7 +1584,7 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
@@ -1592,20 +1592,20 @@ bool Editor::nachricht( SKlient *k )
|
|
int zielX;
|
|
int zielX;
|
|
int zielY;
|
|
int zielY;
|
|
bool aktiv;
|
|
bool aktiv;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&zielX, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&zielY, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&aktiv, 1 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&zielX, 4 );
|
|
|
|
- d.schreibe( (char *)&zielY, 4 );
|
|
|
|
- d.schreibe( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&zielX, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&zielY, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&aktiv, 1 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&zielX, 4 );
|
|
|
|
+ d.schreibe( (char*)&zielY, 4 );
|
|
|
|
+ d.schreibe( (char*)&aktiv, 1 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1635,7 +1635,7 @@ bool Editor::nachricht( SKlient *k )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
if( d.open( Datei::Style::schreiben ) )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
- k->sendeEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->sendeEncrypted( (char*)&id, 4 );
|
|
int x;
|
|
int x;
|
|
int y;
|
|
int y;
|
|
int breite;
|
|
int breite;
|
|
@@ -1644,22 +1644,22 @@ bool Editor::nachricht( SKlient *k )
|
|
int maxAbklingzeit;
|
|
int maxAbklingzeit;
|
|
bool drehend;
|
|
bool drehend;
|
|
bool aktiv;
|
|
bool aktiv;
|
|
- k->getNachrichtEncrypted( (char *)&x, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&y, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&breite, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&height, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&richtung, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&maxAbklingzeit, 4 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&drehend, 1 );
|
|
|
|
- k->getNachrichtEncrypted( (char *)&aktiv, 1 );
|
|
|
|
- d.schreibe( (char *)&x, 4 );
|
|
|
|
- d.schreibe( (char *)&y, 4 );
|
|
|
|
- d.schreibe( (char *)&breite, 4 );
|
|
|
|
- d.schreibe( (char *)&height, 4 );
|
|
|
|
- d.schreibe( (char *)&richtung, 1 );
|
|
|
|
- d.schreibe( (char *)&maxAbklingzeit, 4 );
|
|
|
|
- d.schreibe( (char *)&drehend, 1 );
|
|
|
|
- d.schreibe( (char *)&aktiv, 1 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&x, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&y, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&breite, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&height, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&richtung, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&maxAbklingzeit, 4 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&drehend, 1 );
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&aktiv, 1 );
|
|
|
|
+ d.schreibe( (char*)&x, 4 );
|
|
|
|
+ d.schreibe( (char*)&y, 4 );
|
|
|
|
+ d.schreibe( (char*)&breite, 4 );
|
|
|
|
+ d.schreibe( (char*)&height, 4 );
|
|
|
|
+ d.schreibe( (char*)&richtung, 1 );
|
|
|
|
+ d.schreibe( (char*)&maxAbklingzeit, 4 );
|
|
|
|
+ d.schreibe( (char*)&drehend, 1 );
|
|
|
|
+ d.schreibe( (char*)&aktiv, 1 );
|
|
d.close();
|
|
d.close();
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
return 1;
|
|
return 1;
|
|
@@ -1690,7 +1690,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
__int64 size;
|
|
__int64 size;
|
|
- k->getNachrichtEncrypted( (char *)&size, 8 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&size, 8 );
|
|
char buffer[ 2048 ];
|
|
char buffer[ 2048 ];
|
|
while( size > 0 )
|
|
while( size > 0 )
|
|
{
|
|
{
|
|
@@ -1713,9 +1713,9 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len + 1 ];
|
|
|
|
- k->getNachrichtEncrypted( (char *)&name, len );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len + 1 ];
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&name, len );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/variable/";
|
|
tmpPf += "/variable/";
|
|
tmpPf += name;
|
|
tmpPf += name;
|
|
@@ -1732,7 +1732,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
__int64 size;
|
|
__int64 size;
|
|
- k->getNachrichtEncrypted( (char *)&size, 8 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&size, 8 );
|
|
char buffer[ 2048 ];
|
|
char buffer[ 2048 ];
|
|
while( size > 0 )
|
|
while( size > 0 )
|
|
{
|
|
{
|
|
@@ -1755,7 +1755,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/bariere/";
|
|
tmpPf += "/bariere/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1775,7 +1775,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/base/";
|
|
tmpPf += "/base/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1795,7 +1795,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/drop/";
|
|
tmpPf += "/drop/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1815,7 +1815,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/schalter/";
|
|
tmpPf += "/schalter/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1835,7 +1835,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/schiene/";
|
|
tmpPf += "/schiene/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1855,7 +1855,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/timer/";
|
|
tmpPf += "/timer/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1875,7 +1875,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/tunnel/";
|
|
tmpPf += "/tunnel/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1895,7 +1895,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/umlenkung/";
|
|
tmpPf += "/umlenkung/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1915,7 +1915,7 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
int id;
|
|
int id;
|
|
- k->getNachrichtEncrypted( (char *)&id, 4 );
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&id, 4 );
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
tmpPf += "/trigger/";
|
|
tmpPf += "/trigger/";
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
@@ -1935,8 +1935,8 @@ bool Editor::nachricht( SKlient *k )
|
|
{
|
|
{
|
|
k->sendeEncrypted( "\1", 1 );
|
|
k->sendeEncrypted( "\1", 1 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- k->getNachrichtEncrypted( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ len + 1 ];
|
|
|
|
|
|
+ k->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ len + 1 ];
|
|
k->getNachrichtEncrypted( name, len );
|
|
k->getNachrichtEncrypted( name, len );
|
|
name[ len ] = 0;
|
|
name[ len ] = 0;
|
|
Text tmpPf = pfad.getText();
|
|
Text tmpPf = pfad.getText();
|
|
@@ -1964,7 +1964,7 @@ bool Editor::nachricht( SKlient *k )
|
|
}
|
|
}
|
|
|
|
|
|
// constant
|
|
// constant
|
|
-char *Editor::getLetzterFehler() const
|
|
|
|
|
|
+char* Editor::getLetzterFehler() const
|
|
{
|
|
{
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
@@ -1990,8 +1990,8 @@ bool Editor::createSitzung()
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
d.open( Datei::Style::lesen );
|
|
d.open( Datei::Style::lesen );
|
|
- d.lese( (char *)&spielerAnzahl, 4 );
|
|
|
|
- d.lese( (char *)&teamAnzahl, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&spielerAnzahl, 4 );
|
|
|
|
+ d.lese( (char*)&teamAnzahl, 4 );
|
|
d.close();
|
|
d.close();
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf.remove( pf.getLength() - 6, pf.getLength() );
|
|
pf.remove( pf.getLength() - 6, pf.getLength() );
|
|
@@ -2013,8 +2013,8 @@ bool Editor::createSitzung()
|
|
err += "\n";
|
|
err += "\n";
|
|
}
|
|
}
|
|
__int64 size = 0;
|
|
__int64 size = 0;
|
|
- d.lese( (char *)&size, 8 );
|
|
|
|
- s.schreibe( (char *)&size, 8 );
|
|
|
|
|
|
+ d.lese( (char*)&size, 8 );
|
|
|
|
+ s.schreibe( (char*)&size, 8 );
|
|
s.close();
|
|
s.close();
|
|
// teams
|
|
// teams
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
@@ -2026,8 +2026,8 @@ bool Editor::createSitzung()
|
|
tmpPf += ".t";
|
|
tmpPf += ".t";
|
|
int maxWbZeit;
|
|
int maxWbZeit;
|
|
int punkte;
|
|
int punkte;
|
|
- d.lese( (char *)&maxWbZeit, 4 );
|
|
|
|
- d.lese( (char *)&punkte, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&maxWbZeit, 4 );
|
|
|
|
+ d.lese( (char*)&punkte, 4 );
|
|
Datei t;
|
|
Datei t;
|
|
t.setDatei( tmpPf );
|
|
t.setDatei( tmpPf );
|
|
t.erstellen();
|
|
t.erstellen();
|
|
@@ -2039,8 +2039,8 @@ bool Editor::createSitzung()
|
|
err += __LINE__;
|
|
err += __LINE__;
|
|
err += "\n";
|
|
err += "\n";
|
|
}
|
|
}
|
|
- t.schreibe( (char *)&maxWbZeit, 4 );
|
|
|
|
- t.schreibe( (char *)&punkte, 4 );
|
|
|
|
|
|
+ t.schreibe( (char*)&maxWbZeit, 4 );
|
|
|
|
+ t.schreibe( (char*)&punkte, 4 );
|
|
t.close();
|
|
t.close();
|
|
}
|
|
}
|
|
// spieler
|
|
// spieler
|
|
@@ -2053,8 +2053,8 @@ bool Editor::createSitzung()
|
|
tmpPf += ".p";
|
|
tmpPf += ".p";
|
|
int spawnX;
|
|
int spawnX;
|
|
int spawnY;
|
|
int spawnY;
|
|
- d.lese( (char *)&spawnX, 4 );
|
|
|
|
- d.lese( (char *)&spawnY, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&spawnX, 4 );
|
|
|
|
+ d.lese( (char*)&spawnY, 4 );
|
|
Datei s;
|
|
Datei s;
|
|
s.setDatei( tmpPf );
|
|
s.setDatei( tmpPf );
|
|
s.erstellen();
|
|
s.erstellen();
|
|
@@ -2066,19 +2066,19 @@ bool Editor::createSitzung()
|
|
err += __LINE__;
|
|
err += __LINE__;
|
|
err += "\n";
|
|
err += "\n";
|
|
}
|
|
}
|
|
- s.schreibe( (char *)&spawnX, 4 );
|
|
|
|
- s.schreibe( (char *)&spawnY, 4 );
|
|
|
|
|
|
+ s.schreibe( (char*)&spawnX, 4 );
|
|
|
|
+ s.schreibe( (char*)&spawnY, 4 );
|
|
s.close();
|
|
s.close();
|
|
}
|
|
}
|
|
// barieren
|
|
// barieren
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/bariere/";
|
|
pf += "/bariere/";
|
|
int anz;
|
|
int anz;
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".b";
|
|
tmpPf += ".b";
|
|
@@ -2101,11 +2101,11 @@ bool Editor::createSitzung()
|
|
// basen
|
|
// basen
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/base/";
|
|
pf += "/base/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".b";
|
|
tmpPf += ".b";
|
|
@@ -2128,11 +2128,11 @@ bool Editor::createSitzung()
|
|
// drops
|
|
// drops
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/drop/";
|
|
pf += "/drop/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".d";
|
|
tmpPf += ".d";
|
|
@@ -2151,23 +2151,23 @@ bool Editor::createSitzung()
|
|
}
|
|
}
|
|
s.schreibe( buffer, 96 );
|
|
s.schreibe( buffer, 96 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- d.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ d.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
d.lese( name, len );
|
|
d.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
- s.schreibe( (char *)&len, 1 );
|
|
|
|
- s.schreibe( (char *)&name, len );
|
|
|
|
|
|
+ s.schreibe( (char*)&len, 1 );
|
|
|
|
+ s.schreibe( (char*)&name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
s.close();
|
|
s.close();
|
|
}
|
|
}
|
|
// schalter
|
|
// schalter
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/schalter/";
|
|
pf += "/schalter/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".s";
|
|
tmpPf += ".s";
|
|
@@ -2190,11 +2190,11 @@ bool Editor::createSitzung()
|
|
// schiene
|
|
// schiene
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/schiene/";
|
|
pf += "/schiene/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".s";
|
|
tmpPf += ".s";
|
|
@@ -2217,11 +2217,11 @@ bool Editor::createSitzung()
|
|
// timer
|
|
// timer
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/timer/";
|
|
pf += "/timer/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".t";
|
|
tmpPf += ".t";
|
|
@@ -2240,23 +2240,23 @@ bool Editor::createSitzung()
|
|
}
|
|
}
|
|
s.schreibe( buffer, 19 );
|
|
s.schreibe( buffer, 19 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- d.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ d.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
d.lese( name, len );
|
|
d.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
- s.schreibe( (char *)&len, 1 );
|
|
|
|
- s.schreibe( (char *)&name, len );
|
|
|
|
|
|
+ s.schreibe( (char*)&len, 1 );
|
|
|
|
+ s.schreibe( (char*)&name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
s.close();
|
|
s.close();
|
|
}
|
|
}
|
|
// tunnel
|
|
// tunnel
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/tunnel/";
|
|
pf += "/tunnel/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".t";
|
|
tmpPf += ".t";
|
|
@@ -2279,11 +2279,11 @@ bool Editor::createSitzung()
|
|
// umlenkung
|
|
// umlenkung
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/umlenkung/";
|
|
pf += "/umlenkung/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".u";
|
|
tmpPf += ".u";
|
|
@@ -2307,11 +2307,11 @@ bool Editor::createSitzung()
|
|
MapReader mr;
|
|
MapReader mr;
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/trigger/";
|
|
pf += "/trigger/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
int id;
|
|
int id;
|
|
- d.lese( (char *)&id, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&id, 4 );
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
tmpPf += id;
|
|
tmpPf += id;
|
|
tmpPf += ".t";
|
|
tmpPf += ".t";
|
|
@@ -2327,27 +2327,27 @@ bool Editor::createSitzung()
|
|
err += "\n";
|
|
err += "\n";
|
|
}
|
|
}
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- d.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ d.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
d.lese( name, len );
|
|
d.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
- s.schreibe( (char *)&len, 1 );
|
|
|
|
- s.schreibe( (char *)&name, len );
|
|
|
|
|
|
+ s.schreibe( (char*)&len, 1 );
|
|
|
|
+ s.schreibe( (char*)&name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
int ereignisAnzahl;
|
|
int ereignisAnzahl;
|
|
int bedingungAnzahl;
|
|
int bedingungAnzahl;
|
|
int aktionAnzahl;
|
|
int aktionAnzahl;
|
|
- d.lese( (char *)&ereignisAnzahl, 4 );
|
|
|
|
- d.lese( (char *)&bedingungAnzahl, 4 );
|
|
|
|
- d.lese( (char *)&aktionAnzahl, 4 );
|
|
|
|
- s.schreibe( (char *)&ereignisAnzahl, 4 );
|
|
|
|
- s.schreibe( (char *)&bedingungAnzahl, 4 );
|
|
|
|
- s.schreibe( (char *)&aktionAnzahl, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&ereignisAnzahl, 4 );
|
|
|
|
+ d.lese( (char*)&bedingungAnzahl, 4 );
|
|
|
|
+ d.lese( (char*)&aktionAnzahl, 4 );
|
|
|
|
+ s.schreibe( (char*)&ereignisAnzahl, 4 );
|
|
|
|
+ s.schreibe( (char*)&bedingungAnzahl, 4 );
|
|
|
|
+ s.schreibe( (char*)&aktionAnzahl, 4 );
|
|
for( int j = 0; j < ereignisAnzahl; j++ )
|
|
for( int j = 0; j < ereignisAnzahl; j++ )
|
|
{
|
|
{
|
|
int typ;
|
|
int typ;
|
|
- d.lese( (char *)&typ, 4 );
|
|
|
|
- s.schreibe( (char *)&typ, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&typ, 4 );
|
|
|
|
+ s.schreibe( (char*)&typ, 4 );
|
|
}
|
|
}
|
|
for( int j = 0; j < bedingungAnzahl; j++ )
|
|
for( int j = 0; j < bedingungAnzahl; j++ )
|
|
mr.writeAktion( mr.readAktion( d ), s );
|
|
mr.writeAktion( mr.readAktion( d ), s );
|
|
@@ -2358,12 +2358,12 @@ bool Editor::createSitzung()
|
|
// variable
|
|
// variable
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf += "/variable/";
|
|
pf += "/variable/";
|
|
- d.lese( (char *)&anz, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&anz, 4 );
|
|
for( int i = 0; i < anz; i++ )
|
|
for( int i = 0; i < anz; i++ )
|
|
{
|
|
{
|
|
char len;
|
|
char len;
|
|
- d.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ d.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
d.lese( name, len );
|
|
d.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
Text tmpPf = pf.getText();
|
|
Text tmpPf = pf.getText();
|
|
@@ -2398,8 +2398,8 @@ bool Editor::createSitzung()
|
|
else if( typ == STRING || typ == RICHTUNG )
|
|
else if( typ == STRING || typ == RICHTUNG )
|
|
{
|
|
{
|
|
char len;
|
|
char len;
|
|
- d.lese( (char *)&len, 1 );
|
|
|
|
- char *str = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ d.lese( (char*)&len, 1 );
|
|
|
|
+ char* str = new char[ (int)len + 1 ];
|
|
d.lese( str, len );
|
|
d.lese( str, len );
|
|
s.schreibe( &len, 1 );
|
|
s.schreibe( &len, 1 );
|
|
s.schreibe( str, len );
|
|
s.schreibe( str, len );
|
|
@@ -2408,8 +2408,8 @@ bool Editor::createSitzung()
|
|
else if( typ != NICHTS )
|
|
else if( typ != NICHTS )
|
|
{
|
|
{
|
|
int v;
|
|
int v;
|
|
- d.lese( (char *)&v, 4 );
|
|
|
|
- s.schreibe( (char *)&v, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&v, 4 );
|
|
|
|
+ s.schreibe( (char*)&v, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
s.close();
|
|
s.close();
|
|
@@ -2453,8 +2453,8 @@ bool Editor::saveSitzung()
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
d.open( Datei::Style::lesen );
|
|
d.open( Datei::Style::lesen );
|
|
- d.lese( (char *)&spielerAnzahl, 4 );
|
|
|
|
- d.lese( (char *)&teamAnzahl, 4 );
|
|
|
|
|
|
+ d.lese( (char*)&spielerAnzahl, 4 );
|
|
|
|
+ d.lese( (char*)&teamAnzahl, 4 );
|
|
d.close();
|
|
d.close();
|
|
pf = pfad.getText();
|
|
pf = pfad.getText();
|
|
pf.remove( pf.getLength() - 6, pf.getLength() );
|
|
pf.remove( pf.getLength() - 6, pf.getLength() );
|
|
@@ -2475,8 +2475,8 @@ bool Editor::saveSitzung()
|
|
err += "\n";
|
|
err += "\n";
|
|
}
|
|
}
|
|
__int64 size = 0;
|
|
__int64 size = 0;
|
|
- s.lese( (char *)&size, 8 );
|
|
|
|
- d.schreibe( (char *)&size, 8 );
|
|
|
|
|
|
+ s.lese( (char*)&size, 8 );
|
|
|
|
+ d.schreibe( (char*)&size, 8 );
|
|
s.close();
|
|
s.close();
|
|
for( int i = 0; i < teamAnzahl; i++ )
|
|
for( int i = 0; i < teamAnzahl; i++ )
|
|
{
|
|
{
|
|
@@ -2489,10 +2489,10 @@ bool Editor::saveSitzung()
|
|
{
|
|
{
|
|
int maxWbZeit;
|
|
int maxWbZeit;
|
|
int punkte;
|
|
int punkte;
|
|
- r.lese( (char *)&maxWbZeit, 4 );
|
|
|
|
- r.lese( (char *)&punkte, 4 );
|
|
|
|
- d.schreibe( (char *)&maxWbZeit, 4 );
|
|
|
|
- d.schreibe( (char *)&punkte, 4 );
|
|
|
|
|
|
+ r.lese( (char*)&maxWbZeit, 4 );
|
|
|
|
+ r.lese( (char*)&punkte, 4 );
|
|
|
|
+ d.schreibe( (char*)&maxWbZeit, 4 );
|
|
|
|
+ d.schreibe( (char*)&punkte, 4 );
|
|
r.close();
|
|
r.close();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -2517,10 +2517,10 @@ bool Editor::saveSitzung()
|
|
{
|
|
{
|
|
int spawnX;
|
|
int spawnX;
|
|
int spawnY;
|
|
int spawnY;
|
|
- r.lese( (char *)&spawnX, 4 );
|
|
|
|
- r.lese( (char *)&spawnY, 4 );
|
|
|
|
- d.schreibe( (char *)&spawnX, 4 );
|
|
|
|
- d.schreibe( (char *)&spawnY, 4 );
|
|
|
|
|
|
+ r.lese( (char*)&spawnX, 4 );
|
|
|
|
+ r.lese( (char*)&spawnY, 4 );
|
|
|
|
+ d.schreibe( (char*)&spawnX, 4 );
|
|
|
|
+ d.schreibe( (char*)&spawnY, 4 );
|
|
r.close();
|
|
r.close();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -2538,12 +2538,12 @@ bool Editor::saveSitzung()
|
|
pf += "/bariere";
|
|
pf += "/bariere";
|
|
Datei obj;
|
|
Datei obj;
|
|
obj.setDatei( pf );
|
|
obj.setDatei( pf );
|
|
- RCArray<Text> *objList = obj.getDateiListe();
|
|
|
|
|
|
+ RCArray<Text>* objList = obj.getDateiListe();
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2553,7 +2553,7 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 32 ];
|
|
char buffer[ 32 ];
|
|
r.lese( buffer, 32 );
|
|
r.lese( buffer, 32 );
|
|
d.schreibe( buffer, 32 );
|
|
d.schreibe( buffer, 32 );
|
|
@@ -2582,8 +2582,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2593,7 +2593,7 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 24 ];
|
|
char buffer[ 24 ];
|
|
r.lese( buffer, 24 );
|
|
r.lese( buffer, 24 );
|
|
d.schreibe( buffer, 24 );
|
|
d.schreibe( buffer, 24 );
|
|
@@ -2622,8 +2622,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2633,17 +2633,17 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 96 ];
|
|
char buffer[ 96 ];
|
|
r.lese( buffer, 96 );
|
|
r.lese( buffer, 96 );
|
|
d.schreibe( buffer, 96 );
|
|
d.schreibe( buffer, 96 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- r.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ r.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
r.lese( name, len );
|
|
r.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
- d.schreibe( (char *)&name, len );
|
|
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
|
|
+ d.schreibe( (char*)&name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
r.close();
|
|
r.close();
|
|
}
|
|
}
|
|
@@ -2670,8 +2670,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2681,7 +2681,7 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 17 ];
|
|
char buffer[ 17 ];
|
|
r.lese( buffer, 17 );
|
|
r.lese( buffer, 17 );
|
|
d.schreibe( buffer, 17 );
|
|
d.schreibe( buffer, 17 );
|
|
@@ -2710,8 +2710,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2721,7 +2721,7 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 16 ];
|
|
char buffer[ 16 ];
|
|
r.lese( buffer, 16 );
|
|
r.lese( buffer, 16 );
|
|
d.schreibe( buffer, 16 );
|
|
d.schreibe( buffer, 16 );
|
|
@@ -2750,8 +2750,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2761,17 +2761,17 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 19 ];
|
|
char buffer[ 19 ];
|
|
r.lese( buffer, 19 );
|
|
r.lese( buffer, 19 );
|
|
d.schreibe( buffer, 19 );
|
|
d.schreibe( buffer, 19 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- r.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ r.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
r.lese( name, len );
|
|
r.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
- d.schreibe( (char *)&name, len );
|
|
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
|
|
+ d.schreibe( (char*)&name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
r.close();
|
|
r.close();
|
|
}
|
|
}
|
|
@@ -2798,8 +2798,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2809,7 +2809,7 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 25 ];
|
|
char buffer[ 25 ];
|
|
r.lese( buffer, 25 );
|
|
r.lese( buffer, 25 );
|
|
d.schreibe( buffer, 25 );
|
|
d.schreibe( buffer, 25 );
|
|
@@ -2838,8 +2838,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2849,7 +2849,7 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
char buffer[ 23 ];
|
|
char buffer[ 23 ];
|
|
r.lese( buffer, 23 );
|
|
r.lese( buffer, 23 );
|
|
d.schreibe( buffer, 23 );
|
|
d.schreibe( buffer, 23 );
|
|
@@ -2879,8 +2879,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2890,29 +2890,29 @@ bool Editor::saveSitzung()
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
int id = (int)*objPf.val();
|
|
int id = (int)*objPf.val();
|
|
- d.schreibe( (char *)&id, 4 );
|
|
|
|
|
|
+ d.schreibe( (char*)&id, 4 );
|
|
unsigned char len;
|
|
unsigned char len;
|
|
- r.lese( (char *)&len, 1 );
|
|
|
|
- char *name = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ r.lese( (char*)&len, 1 );
|
|
|
|
+ char* name = new char[ (int)len + 1 ];
|
|
r.lese( name, len );
|
|
r.lese( name, len );
|
|
name[ (int)len ] = 0;
|
|
name[ (int)len ] = 0;
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
- d.schreibe( (char *)&name, len );
|
|
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
|
|
+ d.schreibe( (char*)&name, len );
|
|
delete[] name;
|
|
delete[] name;
|
|
int ereignisAnzahl;
|
|
int ereignisAnzahl;
|
|
int bedingungAnzahl;
|
|
int bedingungAnzahl;
|
|
int aktionAnzahl;
|
|
int aktionAnzahl;
|
|
- r.lese( (char *)&ereignisAnzahl, 4 );
|
|
|
|
- r.lese( (char *)&bedingungAnzahl, 4 );
|
|
|
|
- r.lese( (char *)&aktionAnzahl, 4 );
|
|
|
|
- d.schreibe( (char *)&ereignisAnzahl, 4 );
|
|
|
|
- d.schreibe( (char *)&bedingungAnzahl, 4 );
|
|
|
|
- d.schreibe( (char *)&aktionAnzahl, 4 );
|
|
|
|
|
|
+ r.lese( (char*)&ereignisAnzahl, 4 );
|
|
|
|
+ r.lese( (char*)&bedingungAnzahl, 4 );
|
|
|
|
+ r.lese( (char*)&aktionAnzahl, 4 );
|
|
|
|
+ d.schreibe( (char*)&ereignisAnzahl, 4 );
|
|
|
|
+ d.schreibe( (char*)&bedingungAnzahl, 4 );
|
|
|
|
+ d.schreibe( (char*)&aktionAnzahl, 4 );
|
|
for( int j = 0; j < ereignisAnzahl; j++ )
|
|
for( int j = 0; j < ereignisAnzahl; j++ )
|
|
{
|
|
{
|
|
int typ;
|
|
int typ;
|
|
- r.lese( (char *)&typ, 4 );
|
|
|
|
- d.schreibe( (char *)&typ, 4 );
|
|
|
|
|
|
+ r.lese( (char*)&typ, 4 );
|
|
|
|
+ d.schreibe( (char*)&typ, 4 );
|
|
}
|
|
}
|
|
for( int j = 0; j < bedingungAnzahl; j++ )
|
|
for( int j = 0; j < bedingungAnzahl; j++ )
|
|
mr.writeAktion( mr.readAktion( r ), d );
|
|
mr.writeAktion( mr.readAktion( r ), d );
|
|
@@ -2943,8 +2943,8 @@ bool Editor::saveSitzung()
|
|
if( objList )
|
|
if( objList )
|
|
{
|
|
{
|
|
int anz = objList->getEintragAnzahl();
|
|
int anz = objList->getEintragAnzahl();
|
|
- d.schreibe( (char *)&anz, 4 );
|
|
|
|
- for( auto objPf = objList->getIterator(); objPf && objPf._; objPf++ )
|
|
|
|
|
|
+ d.schreibe( (char*)&anz, 4 );
|
|
|
|
+ for( auto objPf = objList->begin(); objPf && objPf._; objPf++ )
|
|
{
|
|
{
|
|
Text tmp = pf.getText();
|
|
Text tmp = pf.getText();
|
|
tmp += "/";
|
|
tmp += "/";
|
|
@@ -2953,8 +2953,8 @@ bool Editor::saveSitzung()
|
|
r.setDatei( tmp );
|
|
r.setDatei( tmp );
|
|
if( r.open( Datei::Style::lesen ) )
|
|
if( r.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
- unsigned char len = (unsigned char)( objPf->getLength() - 2 );
|
|
|
|
- d.schreibe( (char *)&len, 1 );
|
|
|
|
|
|
+ unsigned char len = (unsigned char)(objPf->getLength() - 2);
|
|
|
|
+ d.schreibe( (char*)&len, 1 );
|
|
d.schreibe( objPf->getText(), len );
|
|
d.schreibe( objPf->getText(), len );
|
|
char typ;
|
|
char typ;
|
|
r.lese( &typ, 1 );
|
|
r.lese( &typ, 1 );
|
|
@@ -2973,8 +2973,8 @@ bool Editor::saveSitzung()
|
|
else if( typ == STRING || typ == RICHTUNG )
|
|
else if( typ == STRING || typ == RICHTUNG )
|
|
{
|
|
{
|
|
char len;
|
|
char len;
|
|
- r.lese( (char *)&len, 1 );
|
|
|
|
- char *str = new char[ (int)len + 1 ];
|
|
|
|
|
|
+ r.lese( (char*)&len, 1 );
|
|
|
|
+ char* str = new char[ (int)len + 1 ];
|
|
r.lese( str, len );
|
|
r.lese( str, len );
|
|
d.schreibe( &len, 1 );
|
|
d.schreibe( &len, 1 );
|
|
d.schreibe( str, len );
|
|
d.schreibe( str, len );
|
|
@@ -2983,8 +2983,8 @@ bool Editor::saveSitzung()
|
|
else if( typ != NICHTS )
|
|
else if( typ != NICHTS )
|
|
{
|
|
{
|
|
int v;
|
|
int v;
|
|
- r.lese( (char *)&v, 4 );
|
|
|
|
- d.schreibe( (char *)&v, 4 );
|
|
|
|
|
|
+ r.lese( (char*)&v, 4 );
|
|
|
|
+ d.schreibe( (char*)&v, 4 );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
r.close();
|
|
r.close();
|
|
@@ -3030,10 +3030,10 @@ bool Editor::saveSitzung()
|
|
if( d2.open( Datei::Style::schreiben ) && d.open( Datei::Style::lesen ) )
|
|
if( d2.open( Datei::Style::schreiben ) && d.open( Datei::Style::lesen ) )
|
|
{
|
|
{
|
|
__int64 size = d.getSize();
|
|
__int64 size = d.getSize();
|
|
- char *buffer = new char[ 2048 ];
|
|
|
|
|
|
+ char* buffer = new char[ 2048 ];
|
|
while( size > 0 )
|
|
while( size > 0 )
|
|
{
|
|
{
|
|
- int len = (int)( size > 2048 ? 2048 : size );
|
|
|
|
|
|
+ int len = (int)(size > 2048 ? 2048 : size);
|
|
d.lese( buffer, len );
|
|
d.lese( buffer, len );
|
|
d2.schreibe( buffer, len );
|
|
d2.schreibe( buffer, len );
|
|
size -= len;
|
|
size -= len;
|