Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
DiscoverResources::ResourceViewState Class Reference

#include <discoverresources.h>

Public Member Functions

 ResourceViewState ()
 
 ResourceViewState (const MapField *fld, int player)
 
void read (tnstream &stream)
 
void write (tnstream &stream) const
 
void initFromField (const MapField *fld, int player)
 
void writeToField (MapField *fld)
 

Public Attributes

MapCoordinate pos
 
int fuel
 
int material
 
bool visible
 
int player
 

Detailed Description

Definition at line 33 of file discoverresources.h.

Constructor & Destructor Documentation

DiscoverResources::ResourceViewState::ResourceViewState ( )
inline

Definition at line 35 of file discoverresources.h.

DiscoverResources::ResourceViewState::ResourceViewState ( const MapField fld,
int  player 
)
inline

Definition at line 36 of file discoverresources.h.

References initFromField().

Member Function Documentation

void DiscoverResources::ResourceViewState::initFromField ( const MapField fld,
int  player 
)
void DiscoverResources::ResourceViewState::read ( tnstream stream)
void DiscoverResources::ResourceViewState::write ( tnstream stream) const

Definition at line 55 of file discoverresources.cpp.

References tnstream::writeInt().

void DiscoverResources::ResourceViewState::writeToField ( MapField fld)

Member Data Documentation

int DiscoverResources::ResourceViewState::fuel

Definition at line 38 of file discoverresources.h.

Referenced by read().

int DiscoverResources::ResourceViewState::material

Definition at line 39 of file discoverresources.h.

Referenced by read().

int DiscoverResources::ResourceViewState::player

Definition at line 41 of file discoverresources.h.

Referenced by read().

MapCoordinate DiscoverResources::ResourceViewState::pos

Definition at line 36 of file discoverresources.h.

Referenced by read().

bool DiscoverResources::ResourceViewState::visible

Definition at line 40 of file discoverresources.h.

Referenced by read().


The documentation for this class was generated from the following files: