Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

StaticResourceNet Class Reference

#include <resourcenet.h>

Inheritance diagram for StaticResourceNet:

Inheritance graph
[legend]
List of all members.

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)

Protected Member Functions

virtual int searchfinished (void)

Protected Attributes

int need
int got
int queryonly
int player

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
 

Definition at line 280 of file resourcenet.cpp.

References MapNetwork::actmap, got, GameMap::isResourceGlobal(), need, player, queryonly, ResourceNet::resourcetype, ResourceNet::scope, and MapNetwork::start().

Referenced by Building::getAvailableResource(), Building::getResource(), Building::putResource(), and PutTribute::puttribute().

int StaticResourceNet::searchfinished void   )  [protected, virtual]
 

Implements MapNetwork.

Reimplemented in GetResourceCapacity.

Definition at line 301 of file resourcenet.cpp.

References got, and need.


Member Data Documentation

int StaticResourceNet::got [protected]
 

Definition at line 80 of file resourcenet.h.

Referenced by GetResourceCapacity::checkbuilding(), PutTribute::checkbuilding(), PutResource::checkbuilding(), GetResource::checkbuilding(), GetResource::checkvehicle(), getresource(), searchfinished(), GetResourceCapacity::start(), PutTribute::start(), PutResource::start(), and GetResource::start().

int StaticResourceNet::need [protected]
 

Definition at line 79 of file resourcenet.h.

Referenced by PutTribute::checkbuilding(), PutResource::checkbuilding(), GetResource::checkbuilding(), GetResource::checkvehicle(), getresource(), searchfinished(), PutTribute::start(), PutResource::start(), and GetResource::start().

int StaticResourceNet::player [protected]
 

Definition at line 82 of file resourcenet.h.

Referenced by GetResourceCapacity::checkbuilding(), PutTribute::checkbuilding(), PutResource::checkbuilding(), GetResource::checkbuilding(), GetResource::checkvehicle(), getresource(), PutTribute::start(), PutResource::start(), and GetResource::start().

int StaticResourceNet::queryonly [protected]
 

Definition at line 81 of file resourcenet.h.

Referenced by PutTribute::checkbuilding(), PutResource::checkbuilding(), GetResource::checkbuilding(), GetResource::checkvehicle(), getresource(), PutTribute::start(), PutResource::start(), and GetResource::start().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:06 2008 for Advanced Strategic Command by  doxygen 1.4.2