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

#include <resourcenet.h>

Inheritance diagram for StaticResourceNet:
Inheritance graph
[legend]

Public Member Functions

 StaticResourceNet (GameMap *gamemap, int scope=-1)
 
int getresource (int x, int y, int resource, int _need, int _queryonly, int _player, int _scope)
 
- Public Member Functions inherited from ResourceNet
 ResourceNet (GameMap *gamemap, int _scope=-1)
 
- Public Member Functions inherited from MapNetwork
virtual void start (int x, int y)
 
 MapNetwork (GameMap *gamemap, int checkInstances=1)
 
virtual ~MapNetwork ()
 

Protected Member Functions

virtual int searchfinished (void)
 
- Protected Member Functions inherited from ResourceNet
virtual int fieldavail (int x, int y)
 
virtual int globalsearch (void)
 
- Protected Member Functions inherited from MapNetwork
virtual void checkvehicle (Vehicle *v)=0
 
virtual void checkbuilding (Building *b)=0
 
virtual void searchbuilding (int x, int y)
 
virtual void searchvehicle (int x, int y)
 
virtual void searchfield (int x, int y, int dir)
 
void searchAllVehiclesNextToBuildings (int player)
 

Protected Attributes

int need
 
int got
 
int queryonly
 
int player
 
- Protected Attributes inherited from ResourceNet
int resourcetype
 
int scope
 
- Protected Attributes inherited from MapNetwork
GameMapactmap
 
int pass
 
MapCoordinate startposition
 

Additional Inherited Members

- Public Types inherited from MapNetwork
enum  Scope { singleField, net, wholeMap, globalPool }
 

Detailed Description

Definition at line 77 of file resourcenet.h.

Constructor & Destructor Documentation

StaticResourceNet::StaticResourceNet ( GameMap gamemap,
int  scope = -1 
)
inline

Definition at line 87 of file resourcenet.h.

Member Function Documentation

int StaticResourceNet::getresource ( int  x,
int  y,
int  resource,
int  _need,
int  _queryonly,
int  _player,
int  _scope 
)
int StaticResourceNet::searchfinished ( void  )
protectedvirtual

Implements MapNetwork.

Reimplemented in GetResourceCapacity.

Definition at line 306 of file resourcenet.cpp.

References got, and need.

Member Data Documentation

int StaticResourceNet::got
protected
int StaticResourceNet::need
protected
int StaticResourceNet::player
protected
int StaticResourceNet::queryonly
protected

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