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

MiningStation Class Reference

#include <containerbase-functions.h>

Inheritance diagram for MiningStation:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MiningStation (ContainerBase *_bld, bool justQuery_)
virtual bool finished ()
virtual bool run ()
virtual Resources getPlus ()
virtual Resources getUsage ()

Protected Member Functions

void testfield (const MapCoordinate &mc)

Constructor & Destructor Documentation

MiningStation::MiningStation ContainerBase _bld,
bool  justQuery_
 

Definition at line 576 of file containerbase-functions.cpp.

References ContainerBase::baseType, fatalError(), ContainerBaseType::id, ContainerBase::plus, Resources::resource(), run(), and strrr().


Member Function Documentation

bool MiningStation::finished  )  [virtual]
 

Implements ContainerBase::Work.

Definition at line 737 of file containerbase-functions.cpp.

References Resources::resource().

Resources MiningStation::getPlus  )  [virtual]
 

Implements ContainerBase::Work.

Definition at line 745 of file containerbase-functions.cpp.

Referenced by MiningWindow::getOutput(), and viewMiningPower().

Resources MiningStation::getUsage  )  [virtual]
 

Implements ContainerBase::Work.

Definition at line 750 of file containerbase-functions.cpp.

References Resources::resource().

Referenced by MiningWindow::getOutput().

bool MiningStation::run  )  [virtual]
 

Implements ContainerBase::Work.

Definition at line 603 of file containerbase-functions.cpp.

References ContainerBase::getOwner(), ContainerBase::getPosition(), ContainerBase::getResource(), SearchFields::initsearch(), maxminingrange, ContainerBase::plus, ContainerBase::putResource(), Resources::resource(), resourceNames, SearchFields::startsearch(), and warning().

Referenced by MiningStation().

void MiningStation::testfield const MapCoordinate mc  )  [protected, virtual]
 

Implements SearchFields.

Definition at line 655 of file containerbase-functions.cpp.

References SearchFields::cancelSearch, SearchFields::dist, tfield::fuel, SearchFields::gamemap, GameMap::getField(), getminingstationeficency(), ContainerBase::getOwner(), tfield::material, min(), Resources::resource(), resource_fuel_factor, resource_material_factor, tfield::resourceview, and warning().


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