Advanced Strategic Command
Classes | Functions | Variables
ForestCalculation Namespace Reference

Classes

class  Smoothing
 

Functions

void smooth (int what, GameMap *gamemap, ObjectType *woodObj)
 automatically adjusting the pictures of woods and coasts to form coherent structures More...
 
void calculateforest (GameMap *actmap, ObjectType *woodObj)
 

Variables

const int woodformnum = 28
 
int woodform [woodformnum] = { 63,30,60,39,51,28,35,48,6,57,15,14,56,7,49,47,59,31,61,60,55, -1,-1,-1,-1,-1,-1,-1 }
 
int SmoothTreesData0 []
 
int SmoothTreesData []
 
int UnSmoothTreesData []
 
int SmoothBanksData []
 
int UnSmoothBanksData []
 
int SmoothDarkBanksData []
 
int UnSmoothDarkBanksData []
 

Function Documentation

void ForestCalculation::calculateforest ( GameMap actmap,
ObjectType woodObj 
)
void ForestCalculation::smooth ( int  what,
GameMap gamemap,
ObjectType woodObj 
)

automatically adjusting the pictures of woods and coasts to form coherent structures

Definition at line 748 of file objecttype.cpp.

References ForestCalculation::Smoothing::smooth().

Referenced by execaction().

Variable Documentation

int ForestCalculation::SmoothBanksData[]
Initial value:
= {
4, 7, 16, 77,
1, 0x0103, 95,
4, 0x010F, 95,
0x010E, 0,
0x0109,110,
0x0107,121,
20,0x3F,59, 98, 0x3F,51, 98, 0x3F,47, 99, 0x3F,39, 99,
0x3F,31,100, 0x3F,30,100, 0x3F,61,101, 0x3F,60,101,
0x3F,55,102, 0x3F,62,103, 0x3F,35,104, 0x3F,28,105,
0x3F,56,106, 0x3F,48,106, 0x3F,49,106, 0x3F,57,106,
0x3F,14,107, 0x3F,15,107, 0x3F, 7,107, 0x3F, 6,107,
0
}

Definition at line 352 of file objecttype.cpp.

Referenced by ForestCalculation::Smoothing::smooth().

int ForestCalculation::SmoothDarkBanksData[]
Initial value:
= {
4, 7, 16, 77,
1,0x0103,385,
4,0x0103,385,
0x010A,373,
0x0104,449,
0x0104,463,
20,0x3F,59,373, 0x3F,51,373, 0x3F,47,374, 0x3F,39,374,
0x3F,31,375, 0x3F,30,375, 0x3F,61,376, 0x3F,60,376,
0x3F,55,377, 0x3F,62,378, 0x3F,35,379, 0x3F,28,380,
0x3F,56,381, 0x3F,48,381, 0x3F,49,381, 0x3F,57,381,
0x3F,14,382, 0x3F,15,382, 0x3F, 7,382, 0x3F, 6,382,
0
}

Definition at line 376 of file objecttype.cpp.

Referenced by ForestCalculation::Smoothing::smooth().

int ForestCalculation::SmoothTreesData[]
Initial value:
= {
4, 7, 10,101,
1,0x0001,243,
1,0x0115,243,
30,0x3F, 30,244,0x3F, 60,245,0x3F, 39,246,0x3F, 51,247,
0x3F, 28,248,0x3F, 29,248,0x3F, 35,249,0x3F, 43,249,
0x3F, 48,250,0x3F, 50,250,0x3F, 52,250,0x3F, 6,251,
0x3F, 22,251,0x3F, 38,251,0x3F, 57,252,0x3F, 15,253,
0x3F, 14,254,0x3F, 46,254,0x3F, 56,255,0x3F, 58,255,
0x3F, 7,256,0x3F, 23,256,0x3F, 49,257,0x3F, 53,257,
0x3F, 47,258,0x3F, 59,259,0x3F, 31,260,0x3F, 61,261,
0x3F, 62,262,0x3F, 55,263,
7,264,265,266,267,268,269,270
}

Definition at line 326 of file objecttype.cpp.

Referenced by ForestCalculation::Smoothing::smooth().

int ForestCalculation::SmoothTreesData0[]
Initial value:
= {
4, 7, 10,101,
1,0x0001,243,
1,0x0115,243,
30,0x3F, 30,243,0x3F, 60,243,0x3F, 39,243,0x3F, 51,243,
0x3F, 28,243,0x3F, 35,243,0x3F, 48,243,0x3F, 6,243,
0x3F, 57,243,0x3F, 15,243,0x3F, 14,243,0x3F, 56,243,
0x3F, 7,243,0x3F, 49,243,0x3F, 47,243,0x3F, 59,243,
0x3F, 31,243,0x3F, 61,243,0x3F, 62,243,0x3F, 55,243,
0x3F, 23,243,0x3F, 46,243,0x3F, 29,243,0x3F, 58,243,
0x3F, 53,243,0x3F, 43,243,0x3F, 22,243,0x3F, 38,243,
0x3F, 50,243,0x3F, 52,243,
7,264,265,266,267,268,269,270
}

Definition at line 311 of file objecttype.cpp.

Referenced by ForestCalculation::Smoothing::smooth().

int ForestCalculation::UnSmoothBanksData[]
Initial value:
= {
4, 7, 8, 9,
1, 0x010C, 98,
0,
0,
1, 95
}

Definition at line 367 of file objecttype.cpp.

Referenced by ForestCalculation::Smoothing::smooth().

int ForestCalculation::UnSmoothDarkBanksData[]
Initial value:
= {
4, 7, 8, 9,
1,0x010A,373,
0,
0,
1,385
}

Definition at line 391 of file objecttype.cpp.

Referenced by ForestCalculation::Smoothing::smooth().

int ForestCalculation::UnSmoothTreesData[]
Initial value:
= {
4, 7, 8, 9,
1,0x011C,243,
0,
0,
1,243
}

Definition at line 341 of file objecttype.cpp.

int ForestCalculation::woodform[woodformnum] = { 63,30,60,39,51,28,35,48,6,57,15,14,56,7,49,47,59,31,61,60,55, -1,-1,-1,-1,-1,-1,-1 }

Definition at line 308 of file objecttype.cpp.

Referenced by calculateforest().

const int ForestCalculation::woodformnum = 28

Definition at line 307 of file objecttype.cpp.

Referenced by calculateforest().