Advanced Strategic Command
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
GetConnectedBuildings Class Reference

#include <resourcenet.h>

Inheritance diagram for GetConnectedBuildings:
Inheritance graph
[legend]

Public Types

typedef vector< Building * > BuildingContainer
 
- Public Types inherited from MapNetwork
enum  Scope { singleField, net, wholeMap, globalPool }
 

Public Member Functions

 GetConnectedBuildings (BuildingContainer &buildingContainer_, GameMap *gamemap, int resourceType)
 
- Public Member Functions inherited from ResourceNet
 ResourceNet (GameMap *gamemap, int _scope=-1)
 
- Public Member Functions inherited from MapNetwork
virtual void start (int x, int y)
 
 MapNetwork (GameMap *gamemap, int checkInstances=1)
 
virtual ~MapNetwork ()
 

Public Attributes

BuildingContainerbuildingContainer
 

Protected Member Functions

void checkvehicle (Vehicle *v)
 
void checkbuilding (Building *b)
 
int searchfinished (void)
 
- Protected Member Functions inherited from ResourceNet
virtual int fieldavail (int x, int y)
 
virtual int globalsearch (void)
 
- Protected Member Functions inherited from MapNetwork
virtual void searchbuilding (int x, int y)
 
virtual void searchvehicle (int x, int y)
 
virtual void searchfield (int x, int y, int dir)
 
void searchAllVehiclesNextToBuildings (int player)
 

Additional Inherited Members

- Protected Attributes inherited from ResourceNet
int resourcetype
 
int scope
 
- Protected Attributes inherited from MapNetwork
GameMapactmap
 
int pass
 
MapCoordinate startposition
 

Detailed Description

Definition at line 65 of file resourcenet.h.

Member Typedef Documentation

Definition at line 69 of file resourcenet.h.

Constructor & Destructor Documentation

GetConnectedBuildings::GetConnectedBuildings ( BuildingContainer buildingContainer_,
GameMap gamemap,
int  resourceType 
)
inline

Definition at line 74 of file resourcenet.h.

References ResourceNet::resourcetype.

Member Function Documentation

void GetConnectedBuildings::checkbuilding ( Building b)
inlineprotectedvirtual

Implements MapNetwork.

Definition at line 68 of file resourcenet.h.

References buildingContainer.

void GetConnectedBuildings::checkvehicle ( Vehicle v)
inlineprotectedvirtual

Implements MapNetwork.

Definition at line 67 of file resourcenet.h.

int GetConnectedBuildings::searchfinished ( void  )
inlineprotectedvirtual

Implements MapNetwork.

Definition at line 69 of file resourcenet.h.

Member Data Documentation

BuildingContainer& GetConnectedBuildings::buildingContainer

Definition at line 73 of file resourcenet.h.

Referenced by checkbuilding().


The documentation for this class was generated from the following file: