Difference between revisions of "CLandscape"
From Project X Wiki
Line 6: | Line 6: | ||
{ | { | ||
CBitmap* BitMask; | CBitmap* BitMask; | ||
+ | bool sx; | ||
+ | bool sy; | ||
+ | bool Undestructable; | ||
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 14: | ||
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/> |
+ | Undestructable - whether the landscape is destructable or not.<br/> | ||
+ | MakeHole - creates hole in terrain (like in explosions).<br/> | ||
+ | ApplyMask - applies indexed mask to coordinates.<br/> | ||
Indexes on da picture:<br/> | Indexes on da picture:<br/> | ||
[[File:TerrainMasks.PNG]] | [[File:TerrainMasks.PNG]] | ||
{{Classes}} | {{Classes}} |
Revision as of 15:31, 6 January 2012
class CLandscape { CBitmap* BitMask; bool sx; bool sy; bool Undestructable; 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.
Undestructable - whether the landscape is destructable or not.
MakeHole - creates hole in terrain (like in explosions).
ApplyMask - applies indexed mask to coordinates.
Indexes on da picture:
|