Difference between revisions of "CGame"

From Project X Wiki
Jump to: navigation, search
 
(Fields)
 
(2 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
  };
 
  };
  
 +
 +
Fonts:
 +
[[File:fonts.png]]
 
----
 
----
  
Line 27: Line 30:
 
queue - queue field of CGame, message - message.
 
queue - queue field of CGame, message - message.
  
   void WriteToChat(int fIndex, string message);
+
   void WriteToChat(int fontIndex, string message, bool Unk);
 +
  example: void WriteToChat(GG->curFont, "Anticheat online!", false);
 +
  or GG->WriteToChat(GG->curFont, f, false);
  
 
This function writes to game chat directly. Use it for showing output of chat commands.
 
This function writes to game chat directly. Use it for showing output of chat commands.

Latest revision as of 16:36, 28 December 2011

Up one category:
Scripting


Worms Armageddon class

Class name: CGame
Description: Contains various game information
Constructor: Not Available
Derived From: None


It contains information about chat, message handling and references to some network classes..
But most of them isn't declared yet.

Fields

class CGame
{
  CMQueue* queue;
  CMQueue* queue2;
  int curFont;
  CGameState* GS;
  CLandscape* land;  
};


Fonts: Fonts.png


Methods

  bool EnterToChat(CMQueue* queue, string message);

This fuction called when user types message into chat. Use it for hooking chat commands or for emulating entering text into chat by user.

queue - queue field of CGame, message - message.

  void WriteToChat(int fontIndex, string message, bool Unk);
  example: void WriteToChat(GG->curFont, "Anticheat online!", false);
  or GG->WriteToChat(GG->curFont, f, false);

This function writes to game chat directly. Use it for showing output of chat commands.