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

#include <resourcenet.h>

Inheritance diagram for PutTribute:
Inheritance graph
[legend]

Public Member Functions

 PutTribute (GameMap *gamemap)
 
int puttribute (Building *start, int resource, int _queryonly, int _forplayer, int _fromplayer, int _scope)
 
- 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)
 
- 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 targplayer
 
Buildingstartbuilding
 
- 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 114 of file resourcenet.h.

Constructor & Destructor Documentation

PutTribute::PutTribute ( GameMap gamemap)
inline

Definition at line 122 of file resourcenet.h.

Member Function Documentation

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

Implements MapNetwork.

Definition at line 119 of file resourcenet.h.

int PutTribute::puttribute ( Building start,
int  resource,
int  _queryonly,
int  _forplayer,
int  _fromplayer,
int  _scope 
)
void PutTribute::start ( int  x,
int  y 
)
protectedvirtual

Member Data Documentation

Building* PutTribute::startbuilding
protected

Definition at line 117 of file resourcenet.h.

Referenced by puttribute(), and start().

int PutTribute::targplayer
protected

Definition at line 116 of file resourcenet.h.

Referenced by checkbuilding(), puttribute(), and start().


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