ForestCalculation::Smoothing Class Reference

List of all members.

Public Member Functions

 Smoothing (GameMap *gamemap)
MapFieldgetfield (int x, int y)
int IsInSetOfWord (int Wert, int *A)
int GetNeighbourMask (int x, int y, int *Arr, ObjectType *o)
int GetNeighbourMask (int x, int y, int *Arr)
int SearchAndGetInt (int Wert, int *Arr, int *Res)
int SmoothIt (ObjectType *TerObj, int *SmoothData)
void smooth (int what, ObjectType *woodObj)

Detailed Description

Definition at line 401 of file objecttype.cpp.


Constructor & Destructor Documentation

ForestCalculation::Smoothing::Smoothing ( GameMap gamemap  )  [inline]

Definition at line 404 of file objecttype.cpp.


Member Function Documentation

MapField* ForestCalculation::Smoothing::getfield ( int  x,
int  y 
) [inline]

Definition at line 405 of file objecttype.cpp.

References GameMap::getField().

Referenced by GetNeighbourMask(), and SmoothIt().

int ForestCalculation::Smoothing::IsInSetOfWord ( int  Wert,
int *  A 
) [inline]

Definition at line 410 of file objecttype.cpp.

Referenced by GetNeighbourMask(), and SmoothIt().

int ForestCalculation::Smoothing::GetNeighbourMask ( int  x,
int  y,
int *  Arr,
ObjectType o 
) [inline]

Definition at line 442 of file objecttype.cpp.

References ObjectType::WeatherPicture::bi3pic, MapField::checkForObject(), Object::dir, getfield(), getnextfield(), IsInSetOfWord(), sidenum, Object::typ, ObjectType::weather, and ObjectType::weatherPicture.

Referenced by SmoothIt().

int ForestCalculation::Smoothing::GetNeighbourMask ( int  x,
int  y,
int *  Arr 
) [inline]

Definition at line 467 of file objecttype.cpp.

References TerrainType::Weather::bi_pict, getfield(), getnextfield(), IsInSetOfWord(), sidenum, and MapField::typ.

int ForestCalculation::Smoothing::SearchAndGetInt ( int  Wert,
int *  Arr,
int *  Res 
) [inline]

Definition at line 503 of file objecttype.cpp.

Referenced by SmoothIt().

int ForestCalculation::Smoothing::SmoothIt ( ObjectType TerObj,
int *  SmoothData 
) [inline]

Definition at line 519 of file objecttype.cpp.

References TerrainType::Weather::bi_pict, getfield(), GetNeighbourMask(), IsInSetOfWord(), SearchAndGetInt(), MapField::typ, GameMap::xsize, and GameMap::ysize.

Referenced by smooth().

void ForestCalculation::Smoothing::smooth ( int  what,
ObjectType woodObj 
) [inline]

Definition at line 594 of file objecttype.cpp.

References ForestCalculation::SmoothBanksData, ForestCalculation::SmoothDarkBanksData, SmoothIt(), ForestCalculation::SmoothTreesData, ForestCalculation::SmoothTreesData0, ForestCalculation::UnSmoothBanksData, and ForestCalculation::UnSmoothDarkBanksData.

Referenced by ForestCalculation::calculateforest(), and ForestCalculation::smooth().


The documentation for this class was generated from the following file:
Generated on Mon May 21 01:49:05 2012 for Advanced Strategic Command by  doxygen 1.5.1