ORTS
Namespaces | Classes | Typedefs | Functions

SimpleTerrain Namespace Reference

A bucket provides noth,south,east, and west faces for the object it contains. More...

Namespaces

namespace  SimpleTerrain

Classes

struct  LegMotionData
struct  null_deleter
struct  ArbitraryResolutionSimpleMap
 Adapt SimpleMap to use a given Resolution Factor. More...
class  SimpleGlobalPF
class  SimpleTerrainOverlay
class  SimpleTerrainWidget
struct  FindFailed
struct  ObjectTranslocator
 make a CIRCLE Object appear to be at an arbitrary location More...
struct  UnitPath
struct  ST_Task
 The internal data complementing Task data: More...
struct  UnitSquare
 The definition of a square using two corners. More...
struct  Sector
 A sector is a large area, containing objects (actually tasks) whose paths in the near future will pass through the area, and hence may collide. More...
class  ST_Terrain
 A Simple implementation of the TerrainBase interface. More...
class  Bucket
class  BucketFactory
struct  UnitPath_FF
 Structure to keep data associated to a path fixme: right now this inherits from UnitPath, from SimpleTerrain, but that doesn't make much sense. More...
class  Loc_less
 Functor that allows Locations to be put into sets. More...
class  Vec_2D
 Two Dimensional Vector. More...
struct  FF_Task
 The internal data complementing Task data: More...
class  ST_ForceField
 An implementation of the TerrainBase interface using forcefields for local pathfinding. More...
struct  SizeCell
struct  AStarCell
struct  HeapElement
struct  HeapElementCmp
struct  SimpleMap

Typedefs

typedef TerrainBase::Loc Loc
typedef TerrainBase::Segment Segment
typedef TerrainBase::Task Task
typedef TerrainBase::Path Path
typedef TerrainBase::Goal Goal
typedef TerrainBase::MoveCmd MoveCmd
typedef TerrainBase::StatusMsg StatusMsg
typedef TerrainBase::TaskId TaskId
typedef
TerrainBase::ConsiderObjects 
ConsiderObjects

Functions

static Loc get_center_loc (const Object *obj)
static ScalarPoint get_center_sp (const Object *obj)
static real8 path_length (Path &path)
static real8 path_length_from (Path &path, const Loc &start_loc)
static bool is_younger (const TerrainBasicImp< ST_Task >::TIter &a, const TerrainBasicImp< ST_Task >::TIter &b)
static bool is_shorter (const TerrainBasicImp< ST_Task >::TIter &a, const TerrainBasicImp< ST_Task >::TIter &b)
template<class T >
static void make_unique (Vector< T > &v)
static void unique_x (Vector< Loc > &v)
static void unique_y (Vector< Loc > &v)
static void __assert_object_set_valid (const std::set< const Object * > &objs)
bool is_obj_static (const Object *obj)

Detailed Description

A bucket provides noth,south,east, and west faces for the object it contains.

This is used to optimize search though the grid. So if a move to the north is being considered, having a clear path for the north face implise that one exists for the entire cirlce to move north. That way only the appropriate face needs to be checked.


Typedef Documentation

Definition at line 32 of file SimpleTerrain.H.

Definition at line 28 of file SimpleTerrain.H.

Definition at line 24 of file SimpleTerrain.H.

Definition at line 29 of file SimpleTerrain.H.

Definition at line 27 of file SimpleTerrain.H.

Definition at line 25 of file SimpleTerrain.H.

Definition at line 30 of file SimpleTerrain.H.

Definition at line 26 of file SimpleTerrain.H.

Definition at line 31 of file SimpleTerrain.H.


Function Documentation

static void SimpleTerrain::__assert_object_set_valid ( const std::set< const Object * > &  objs) [static]
static Loc SimpleTerrain::get_center_loc ( const Object obj) [static]
static ScalarPoint SimpleTerrain::get_center_sp ( const Object obj) [static]
bool SimpleTerrain::is_obj_static ( const Object obj)
static bool SimpleTerrain::is_shorter ( const TerrainBasicImp< ST_Task >::TIter &  a,
const TerrainBasicImp< ST_Task >::TIter &  b 
) [static]

Definition at line 963 of file SimpleTerrain.C.

Referenced by SimpleTerrain::ST_Terrain::get_best_task().

static bool SimpleTerrain::is_younger ( const TerrainBasicImp< ST_Task >::TIter &  a,
const TerrainBasicImp< ST_Task >::TIter &  b 
) [static]

Definition at line 959 of file SimpleTerrain.C.

Referenced by SimpleTerrain::ST_Terrain::get_best_task().

template<class T >
static void SimpleTerrain::make_unique ( Vector< T > &  v) [static]

Definition at line 283 of file ST_Bucket.C.

References FORU.

Referenced by SimpleTerrain::BucketFactory::get_bucket().

static real8 SimpleTerrain::path_length ( Path path) [static]

Definition at line 49 of file SimpleTerrain.C.

References TerrainBase::Path::locs.

static real8 SimpleTerrain::path_length_from ( Path path,
const Loc start_loc 
) [static]
static void SimpleTerrain::unique_x ( Vector< Loc > &  v) [static]

Definition at line 291 of file ST_Bucket.C.

References FORALL_DYN.

Referenced by SimpleTerrain::BucketFactory::get_bucket().

static void SimpleTerrain::unique_y ( Vector< Loc > &  v) [static]

Definition at line 305 of file ST_Bucket.C.

References FORALL_DYN.

Referenced by SimpleTerrain::BucketFactory::get_bucket().


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