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

#include <resourcenet.h>

Inheritance diagram for GetResource:
Inheritance graph
[legend]

Public Member Functions

 GetResource (GameMap *gamemap, int scope=-1)
 
- 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 checkvehicle (Vehicle *v)
 
virtual void checkbuilding (Building *b)
 
virtual void start (int x, int y)
 
- Protected Member Functions inherited from StaticResourceNet
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)
 

Protected Attributes

int tributegot [3][8]
 
- 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
 

Additional Inherited Members

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

Detailed Description

Definition at line 95 of file resourcenet.h.

Constructor & Destructor Documentation

GetResource::GetResource ( GameMap gamemap,
int  scope = -1 
)

Definition at line 315 of file resourcenet.cpp.

References tributegot.

Member Function Documentation

void GetResource::checkbuilding ( Building b)
protectedvirtual
void GetResource::checkvehicle ( Vehicle v)
protectedvirtual
void GetResource::start ( int  x,
int  y 
)
protectedvirtual

Member Data Documentation

int GetResource::tributegot[3][8]
protected

Definition at line 97 of file resourcenet.h.

Referenced by checkbuilding(), and GetResource().


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