ORTS

TerrainBase::Goal Struct Reference

A movement goal. More...

#include <TerrainBase.H>

List of all members.

Public Types

enum  Target { LOCATION, OBJ }
 

target location or an object to reach?

More...
enum  Mode { VICINITY, TOUCH, ATTACK }
 

reach vicinity, touch object, attack object?

More...

Public Member Functions

 Goal (Target t, Mode m)
 Goal (const Object *o, Mode m)
 Goal (const Loc &l, Mode m)
 Goal (const Goal &other)

Public Attributes

enum TerrainBase::Goal::Target target
enum TerrainBase::Goal::Mode mode
Loc loc
 The goal location (if target==LOCATION)
const Objectobj
 The goal object (if target==OBJ).
sint4 distance
 The distance from the target that is 'close enough' (if mode==VICINITY)

Detailed Description

A movement goal.

Definition at line 113 of file TerrainBase.H.


Member Enumeration Documentation

reach vicinity, touch object, attack object?

Enumerator:
VICINITY 
TOUCH 
ATTACK 

Definition at line 119 of file TerrainBase.H.

target location or an object to reach?

Enumerator:
LOCATION 
OBJ 

Definition at line 116 of file TerrainBase.H.


Constructor & Destructor Documentation

TerrainBase::Goal::Goal ( Target  t,
Mode  m 
) [inline]

Definition at line 133 of file TerrainBase.H.

TerrainBase::Goal::Goal ( const Object o,
Mode  m 
) [inline]

Definition at line 134 of file TerrainBase.H.

TerrainBase::Goal::Goal ( const Loc l,
Mode  m 
) [inline]

Definition at line 135 of file TerrainBase.H.

TerrainBase::Goal::Goal ( const Goal other) [inline]

Definition at line 137 of file TerrainBase.H.


Member Data Documentation


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


Generated on Fri May 18 2012 03:03:10 for ORTS by Doxygen1.7.3