Difference between revisions of "CLandscape"

From Project X Wiki
Jump to: navigation, search
 
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
  {
 
  {
 
   CBitmap* BitMask;
 
   CBitmap* BitMask;
 +
  bool sx;
 +
  bool sy;
 
   void MakeHole(int radius, int x, int y);
 
   void MakeHole(int radius, int x, int y);
 
   void ApplyMask(int index, int x, int y);
 
   void ApplyMask(int index, int x, int y);
Line 11: Line 13:
  
 
BitMask - bit mask for collision checking <br/>
 
BitMask - bit mask for collision checking <br/>
MakeHole - creates hole in terrain (like in explosions)<br/>
+
sx - x size of the landscape, usually the same as GS->LevelSX.<br/>
ApplyMask - applies indexed mask to coordinates<br/>
+
sy - y size of the landscape, usually the same as GS->LevelSY.<br/>
 +
MakeHole - creates hole in terrain (like in explosions).<br/>
 +
ApplyMask - applies indexed mask to coordinates.<br/>
 +
Indexes on da picture:<br/>
 
[[File:TerrainMasks.PNG]]
 
[[File:TerrainMasks.PNG]]
  
 
{{Classes}}
 
{{Classes}}

Latest revision as of 20:20, 11 January 2012

Up one category:
Scripting


Worms Armageddon class

Class name: CLandscape
Description: Contains information about landscape
Constructor: Not Available
Derived From: None


class CLandscape
{
  CBitmap* BitMask;
  bool sx;
  bool sy;
  void MakeHole(int radius, int x, int y);
  void ApplyMask(int index, int x, int y);
};

BitMask - bit mask for collision checking
sx - x size of the landscape, usually the same as GS->LevelSX.
sy - y size of the landscape, usually the same as GS->LevelSY.
MakeHole - creates hole in terrain (like in explosions).
ApplyMask - applies indexed mask to coordinates.
Indexes on da picture:
TerrainMasks.PNG