phoenix::aux Namespace Reference

The aux library. More...


Classes

class  GlobalVariables
 Global Variables. More...
class  DebugManager
 Debug manager. More...

Functions

template<class a_type>
a_type random (a_type low, a_type high)
 Random function.
void buildCollisionDataFromTileMap (PhTileMap *tilemap, PhPolygonCollisionHandler *colhandle, std::vector< PhVector2d > solidtiles, std::vector< PhPolygon > geometry, int type=1)
 Build collision data from tilemap.


Detailed Description

The aux library.

This is a collection of aux classes and functions to aid in the development of games using the phoenix library.


Function Documentation

void phoenix::aux::buildCollisionDataFromTileMap ( PhTileMap *  tilemap,
PhPolygonCollisionHandler *  colhandle,
std::vector< PhVector2d >  solidtiles,
std::vector< PhPolygon >  geometry,
int  type = 1 
)

Build collision data from tilemap.

Builds collision data from a tilemap, and adds it as static geometry to a collision handler.

Parameters:
tilemap The tilemap to build the data from.
colhandle The collision handler to add the data to.
solidtiles A list of all the tile values that are solid.
geometry A list of geometry: Each index of geometry corresponds to an index in solidtiles. Ex. if a tile was found that matched solidtiles[5], then geometry[5] would be added to the list of static geometry.
type The type identified used by the call backs to determine what kind of objects these are, default 1.
See also:
phoenix::PhPolygonCollisionHandler, phoenix::PhTileMap, phoenix::PhStaticGeometry, phoenix::PhPolygon

template<class a_type>
a_type phoenix::aux::random ( a_type  low,
a_type  high 
) [inline]

Random function.

Parameters:
low The lowest possible value.
high The highest possible value.
Returns:
A pseudo random value between low and high.


Generated on Tue Nov 20 21:59:25 2007 for Phoenix by  doxygen 1.5.4