Difference between revisions of "CLandscape"
From Project X Wiki
Line 8: | Line 8: | ||
bool sx; | bool sx; | ||
bool sy; | 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 16: | Line 15: | ||
sx - x size of the landscape, usually the same as GS->LevelSX.<br/> | sx - x size of the landscape, usually the same as GS->LevelSX.<br/> | ||
sy - y size of the landscape, usually the same as GS->LevelSY.<br/> | sy - y size of the landscape, usually the same as GS->LevelSY.<br/> | ||
− | |||
MakeHole - creates hole in terrain (like in explosions).<br/> | MakeHole - creates hole in terrain (like in explosions).<br/> | ||
ApplyMask - applies indexed mask to coordinates.<br/> | ApplyMask - applies indexed mask to coordinates.<br/> |
Latest revision as of 20:20, 11 January 2012
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:
|