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

Detailed Description

Definition at line 54 of file resourcenet.h.


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, MapField::bdt, MapField::building, 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 Mon May 21 01:47:23 2012 for Advanced Strategic Command by  doxygen 1.5.1