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. | |
This is a collection of aux classes and functions to aid in the development of games using the phoenix library.
| 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.
| 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. |
| a_type phoenix::aux::random | ( | a_type | low, | |
| a_type | high | |||
| ) | [inline] |
Random function.
| low | The lowest possible value. | |
| high | The highest possible value. |
1.5.4