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

ResourceNet Class Reference

#include <resourcenet.h>

Inheritance diagram for ResourceNet:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ResourceNet (GameMap *gamemap, int _scope=-1)

Protected Member Functions

virtual int fieldavail (int x, int y)
virtual int globalsearch (void)

Protected Attributes

int resourcetype
int scope

Constructor & Destructor Documentation

ResourceNet::ResourceNet GameMap gamemap,
int  _scope = -1
[inline]
 

Definition at line 56 of file resourcenet.h.


Member Function Documentation

int ResourceNet::fieldavail int  x,
int  y
[protected, virtual]
 

Implements MapNetwork.

Definition at line 244 of file resourcenet.cpp.

References MapNetwork::actmap, assert, cbpipeline, cbpowerline, GameMap::getField(), getnextfield(), getTerrainBitType(), resourcetype, and sidenum.

virtual int ResourceNet::globalsearch void   )  [inline, protected, virtual]
 

Implements MapNetwork.

Definition at line 62 of file resourcenet.h.

References scope.


Member Data Documentation

int ResourceNet::resourcetype [protected]
 

Definition at line 56 of file resourcenet.h.

Referenced by GetResourceUsage::checkbuilding(), GetResourcePlus::checkbuilding(), GetResourceCapacity::checkbuilding(), PutTribute::checkbuilding(), PutResource::checkbuilding(), GetResource::checkbuilding(), GetResource::checkvehicle(), fieldavail(), GetConnectedBuildings::GetConnectedBuildings(), ResourceChangeNet::getresource(), StaticResourceNet::getresource(), PutTribute::start(), PutResource::start(), and GetResource::start().

int ResourceNet::scope [protected]
 

Definition at line 59 of file resourcenet.h.

Referenced by ResourceChangeNet::getresource(), StaticResourceNet::getresource(), globalsearch(), GetResourceCapacity::start(), PutTribute::start(), PutResource::start(), and GetResource::start().


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