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

#include <resourcenet.h>

Inheritance diagram for GetResourceCapacity:
Inheritance graph
[legend]

Public Member Functions

 GetResourceCapacity (GameMap *gamemap)
 
- Public Member Functions inherited from StaticResourceNet
 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
 MapNetwork (GameMap *gamemap, int checkInstances=1)
 
virtual ~MapNetwork ()
 

Protected Member Functions

virtual void checkbuilding (Building *b)
 
virtual void checkvehicle (Vehicle *v)
 
virtual void start (int x, int y)
 
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 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)
 

Additional Inherited Members

- Public Types inherited from MapNetwork
enum  Scope { singleField, net, wholeMap, globalPool }
 
- Protected Attributes inherited from StaticResourceNet
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
 

Detailed Description

Definition at line 127 of file resourcenet.h.

Constructor & Destructor Documentation

GetResourceCapacity::GetResourceCapacity ( GameMap gamemap)
inline

Definition at line 134 of file resourcenet.h.

Member Function Documentation

void GetResourceCapacity::checkbuilding ( Building b)
protectedvirtual
virtual void GetResourceCapacity::checkvehicle ( Vehicle v)
inlineprotectedvirtual

Implements MapNetwork.

Definition at line 130 of file resourcenet.h.

virtual int GetResourceCapacity::searchfinished ( void  )
inlineprotectedvirtual

Reimplemented from StaticResourceNet.

Definition at line 132 of file resourcenet.h.

void GetResourceCapacity::start ( int  x,
int  y 
)
protectedvirtual

Reimplemented from MapNetwork.

Definition at line 614 of file resourcenet.cpp.

References StaticResourceNet::got, maxint, ResourceNet::scope, and MapNetwork::start().


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