Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
WeatherField Class Reference

#include <weatherarea.h>

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
 

Detailed Description

Definition at line 214 of file weatherarea.h.

Constructor & Destructor Documentation

WeatherField::WeatherField ( GameMap map)

Definition at line 384 of file weatherarea.cpp.

WeatherField::WeatherField ( MapCoordinate  mapPos,
const WeatherArea area 
)
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
void WeatherField::move ( const Vector2D vector)
void WeatherField::read ( tnstream inputStream)

Definition at line 430 of file weatherarea.cpp.

References tnstream::readInt().

Referenced by WeatherArea::read().

void WeatherField::reset ( GameMap m,
const WeatherArea area,
FieldSet processedFields 
)

Definition at line 412 of file weatherarea.cpp.

References MapField::setparams().

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 area,
FieldSet processedFields 
)
void WeatherField::write ( tnstream outputStream) const

Definition at line 426 of file weatherarea.cpp.

References tnstream::writeInt().

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: