Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

WeatherField Class Reference

#include <weatherarea.h>

List of all members.

Public Member Functions

 WeatherField (GameMap *map)
 WeatherField (MapCoordinate mapPos, const WeatherArea *area)
 ~WeatherField ()
void move (const Vector2D &vector)
bool isOnMap (const GameMap *map) const
void update (const WeatherArea *, FieldSet &processedFields)
void reset (GameMap *m, const WeatherArea *, FieldSet &processedFields)
void write (tnstream &outputStream) const
void read (tnstream &inputStream)
void setValue (int v)
int getValue ()

Public Attributes

MapCoordinate posInArea


Constructor & Destructor Documentation

WeatherField::WeatherField GameMap map  ) 
 

Definition at line 384 of file weatherarea.cpp.

WeatherField::WeatherField MapCoordinate  mapPos,
const WeatherArea area
 

Definition at line 386 of file weatherarea.cpp.

References WeatherArea::getMap(), isOnMap(), posInArea, MapCoordinate::x, and MapCoordinate::y.

WeatherField::~WeatherField  ) 
 

Definition at line 393 of file weatherarea.cpp.


Member Function Documentation

int WeatherField::getValue  ) 
 

Definition at line 442 of file weatherarea.cpp.

bool WeatherField::isOnMap const GameMap map  )  const
 

Definition at line 403 of file weatherarea.cpp.

References posInArea, MapCoordinate::x, GameMap::xsize, MapCoordinate::y, and GameMap::ysize.

Referenced by WeatherArea::placeArea(), WeatherArea::removeArea(), WeatherArea::update(), and WeatherField().

void WeatherField::move const Vector2D vector  ) 
 

Definition at line 395 of file weatherarea.cpp.

References Vector2D::getXComponent(), Vector2D::getYComponent(), MapCoordinate::move(), and posInArea.

Referenced by WeatherArea::update().

void WeatherField::read tnstream inputStream  ) 
 

Definition at line 430 of file weatherarea.cpp.

Referenced by WeatherArea::read().

void WeatherField::reset GameMap m,
const WeatherArea ,
FieldSet processedFields
 

Definition at line 412 of file weatherarea.cpp.

References tfield::setparams(), and tfield::setweather().

Referenced by WeatherArea::removeArea(), and WeatherArea::update().

void WeatherField::setValue int  v  ) 
 

Definition at line 438 of file weatherarea.cpp.

void WeatherField::update const WeatherArea ,
FieldSet processedFields
 

Definition at line 419 of file weatherarea.cpp.

References posInArea, tfield::setparams(), tfield::setweather(), MapCoordinate::x, and MapCoordinate::y.

Referenced by WeatherArea::placeArea(), and WeatherArea::update().

void WeatherField::write tnstream outputStream  )  const
 

Definition at line 426 of file weatherarea.cpp.


Member Data Documentation

MapCoordinate WeatherField::posInArea
 

Definition at line 236 of file weatherarea.h.

Referenced by isOnMap(), move(), update(), and WeatherField().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:22:27 2008 for Advanced Strategic Command by  doxygen 1.4.2