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)

Detailed Description

Definition at line 105 of file resourcenet.h.


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, ResourceNet::resourcetype, MapCoordinate::x, and MapCoordinate::y.

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 Mon May 21 01:47:18 2012 for Advanced Strategic Command by  doxygen 1.5.1