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

PutResource Class Reference

#include <resourcenet.h>

Inheritance diagram for PutResource:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PutResource (GameMap *gamemap, int scope=-1)

Protected Member Functions

virtual void checkbuilding (Building *b)
virtual void checkvehicle (Vehicle *v)
virtual void start (int x, int y)

Constructor & Destructor Documentation

PutResource::PutResource GameMap gamemap,
int  scope = -1
[inline]
 

Definition at line 111 of file resourcenet.h.


Member Function Documentation

void PutResource::checkbuilding Building b  )  [protected, virtual]
 

Implements MapNetwork.

Definition at line 399 of file resourcenet.cpp.

References Building::actstorage, cnet_stopenergyinput, ContainerBase::color, displaymessage(), Building::getEntry(), ContainerBase::getStorageCapacity(), StaticResourceNet::got, StaticResourceNet::need, Building::netcontrol, StaticResourceNet::player, StaticResourceNet::queryonly, Resources::resource(), resourceNames, and ResourceNet::resourcetype.

virtual void PutResource::checkvehicle Vehicle v  )  [inline, protected, virtual]
 

Implements MapNetwork.

Definition at line 108 of file resourcenet.h.

void PutResource::start int  x,
int  y
[protected, virtual]
 

Reimplemented from MapNetwork.

Definition at line 421 of file resourcenet.cpp.

References MapNetwork::actmap, GameMap::bi_resource, StaticResourceNet::got, maxint, StaticResourceNet::need, StaticResourceNet::player, StaticResourceNet::queryonly, Resources::resource(), ResourceNet::resourcetype, ResourceNet::scope, and MapNetwork::start().


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