From Project X Wiki
Jump to: navigation, search
Up one category:

Contains information about resolution, landscape, teams and worms.


struct CGameState
 CEnv* env;
 int ALevel;
 CGameInfo Info;
 int landSelectX;
 int landSelectY;
 int ResX;
 int ResY;
 int LevelSX;
 int LevelSY;
 int Tick;

landSelectX, landSelectY - the position of the mouse cursor (of homing weapons).
ResX, ResY - resolution of the screen.
LevelSX, LevelSY - dimenisons of the map.
Tick - current frame since beginning of the game.


int GetRandom();

Generates synchronized random number. Call this only in synchronized procedures for prevent desycnhronization.