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

#include <servicing.h>

Inheritance diagram for ServiceTargetSearcher:
Inheritance graph
[legend]

Public Types

typedef vector< ContainerBase * > Targets
 

Public Member Functions

bool externallyAvailable ()
 
 ServiceTargetSearcher (ContainerBase *src, int checkFlags)
 
void startSearch ()
 
const TargetsgetTargets () const
 

Static Public Attributes

static const int checkAmmo = 1
 
static const int checkResources = 2
 
static const int checkRepair = 4
 

Protected Member Functions

void ammo (ContainerBase *dest, int type)
 
void resource (ContainerBase *dest, int type, bool active)
 
void repair (ContainerBase *dest)
 
- Protected Member Functions inherited from ServiceChecker
const SingleWeapongetServiceWeapon ()
 
 ServiceChecker (ContainerBase *src, int skipChecks=0)
 
void check (ContainerBase *dest)
 
virtual ~ServiceChecker ()
 

Protected Attributes

Targets targets
 
- Protected Attributes inherited from ServiceChecker
ContainerBasesource
 
int ignoreChecks
 

Additional Inherited Members

- Static Protected Attributes inherited from ServiceChecker
static const int ignoreHeight = 1
 
static const int ignoreDistance = 2
 

Detailed Description

Definition at line 120 of file servicing.h.

Member Typedef Documentation

Definition at line 129 of file servicing.h.

Constructor & Destructor Documentation

ServiceTargetSearcher::ServiceTargetSearcher ( ContainerBase src,
int  checkFlags 
)

Definition at line 734 of file servicing.cpp.

References ContainerBase::getMap().

Member Function Documentation

void ServiceTargetSearcher::ammo ( ContainerBase dest,
int  type 
)
protectedvirtual

Implements ServiceChecker.

Definition at line 714 of file servicing.cpp.

References checkAmmo.

bool ServiceTargetSearcher::externallyAvailable ( )
const Targets& ServiceTargetSearcher::getTargets ( ) const
inline
void ServiceTargetSearcher::repair ( ContainerBase dest)
protectedvirtual

Implements ServiceChecker.

Definition at line 727 of file servicing.cpp.

References checkRepair.

void ServiceTargetSearcher::resource ( ContainerBase dest,
int  type,
bool  active 
)
protectedvirtual

Implements ServiceChecker.

Definition at line 720 of file servicing.cpp.

References checkResources.

void ServiceTargetSearcher::startSearch ( )

Member Data Documentation

const int ServiceTargetSearcher::checkAmmo = 1
static
const int ServiceTargetSearcher::checkRepair = 4
static
const int ServiceTargetSearcher::checkResources = 2
static
Targets ServiceTargetSearcher::targets
protected

Definition at line 131 of file servicing.h.

Referenced by getTargets().


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