CLandscape

From Project X Wiki
Revision as of 20:20, 11 January 2012 by StepS (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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