Classes | |
struct | player_stats_t |
handy for constructing player dialogs More... | |
class | Application |
The Application object manages all local terminals (user input/output sessions) as well as communications with the server, and state management for the local host and users. More... | |
class | ClientGameLogicHost |
class | ClientGameLogic |
This interface is used by the application to delegate decisions and routing to game-specific logic. More... | |
struct | event_t |
A general events event. Typicaly this is a button press or release. More... | |
class | TerminalHost |
class | Terminal |
Class that manages input + display for a particular player. More... | |
struct | map_draw_stats_t |
struct | kd_node_t |
class | MapKdTree |
top-level object that manages the full kd-tree More... | |
Typedefs | |
typedef std::map< int, smart_ptr< player_record_t > > | player_map_t |
typedef free_list_t < kdtree::Node::dynamic_entry_t > | free_type_t |
typedef void(* | kdtree_callback_fn )(IN const kd_node_t &node, IN void *context) |
typedef void(* | kdtree_object_fn )(IN glut::Renderable *model, IN const glut::render_context_t &rc, IN glut::RenderQueue *rq, IN void *context) |
Enumerations | |
enum | eDevice { eDevice_Keyboard = 1, eDevice_Mouse = 2, eDevice_Gamepad = 3, eDevice_Invalid = 0 } |
enum | eEvent { eEvent_Press = 1, eEvent_Release = 2, eEvent_Invalid = 0 } |
what is the nature of the given event? More... | |
Functions | |
smart_ptr< ClientGameLogic > | createClientGameLogic (void) |
factory method to create a basic client-side game logic object | |
smart_ptr < converse::ConversationHost > | createSystemMenuHost (IN int playerId, IN Application *app) |
smart_ptr < converse::ConversationHost > | createServerSearchHost (IN Application *app) |
static void | drawObject (IN glut::Renderable *model, IN const glut::render_context_t &rc, IN glut::RenderQueue *rq, IN void *context) |
static void | setLights (void) |
void | drawMap (IN MapKdTree *mapKdTree, IN const glut::render_context_t &rc, IN glut::RenderQueue *rq, OUT map_draw_stats_t &stats) |
helper method to draw a KdTree map. | |
static void | determineZone (IN kdtree::Node *node, IN Zone *root) |
static void | deletePointers (IN kdtree::Node *node) throw () |
static void | deleteAllEntries (IN kdtree::Node *node) throw () |
static void | walkTree (IN kdtree::Node *node, IN int depth, IN kdtree_callback_fn callback, IN void *context) |
static int | compareEntries (IN const void *p1, IN const void *p2) throw () |
static void | walkFrontToBack (IN kdtree::Node *node, IN free_type_t &freeList, IN const glut::render_context_t &rc, IN glut::RenderQueue *rq, IN const frustum_t *f, IN LeafZone *viewerZone, IN kdtree_object_fn callback, IN void *context) |
static void | addInstanceToNode (IN smart_ptr< Instance > &instance, IN LeafZone *lz, IN kdtree::Node *node) |
static void | addDynamicObject (IN smart_ptr< Instance > &instance, IN smart_ptr< PhysicsObject > &obj, IN void *context) |
static void | nukeAllDynamicEntries (IN kdtree::Node *node, free_type_t &freeList) |
smart_ptr< TypeComponentLoader > | createModelLoader (smart_ptr< story::Story > &story) |
create object capable of loading some of the standard AESOP models | |
Variables | |
static const int | s_nMaxQueueSlots = 256 |
static const int | s_rediscoverEvery = 128 |
static const int | s_maxFreeListSize = 256 |
| |
enum | eInputMode { eMode_Normal = 1, eMode_Cursor = 2, eMode_Invalid = 0 } |
The input mode determines how the player interacts with controls. More... | |
typedef point2d_t< int > | pointi_t |
typedef point2d_t< float > | pointf_t |
static const float | s_turnSpeed = 2.0 |
static float | tweakMouseMotion (IN float dx) throw () |
static void | clipCoord (IN float &x, IN int maxX) throw () |
static float | getRandomX (void) throw () |
static float | getPotRatio (IN const gamepad::pot_value_t &pv) throw () |
static float | getJoyAxis (IN const gamepad::pot_value_t &rawValue) throw () |
| |
static const char * | s_name = "Glut 3D Model Loader" |
static const float | s_radiansPerDegree = M_PI / 180.0 |
static smart_ptr< ModelRegistry > | s_registry |
smart_ptr< TypeComponentLoader > | getGlutModelLoader (void) |
smart_ptr< TypeComponentLoader > | createModelLoader (IN smart_ptr< story::Story > &story) |
smart_ptr< glut::Renderable > | getModel (IN smart_ptr< Instance > &instance) |
want to retrieve an already-loaded model? Use this |
typedef std::map<int, smart_ptr<player_record_t> > aesop::player_map_t |
Definition at line 73 of file application.cpp.
typedef point2d_t<int> aesop::pointi_t |
Definition at line 79 of file terminal.cpp.
typedef point2d_t<float> aesop::pointf_t |
Definition at line 80 of file terminal.cpp.
typedef free_list_t<kdtree::Node::dynamic_entry_t> aesop::free_type_t |
Definition at line 50 of file map-kdtree.cpp.
enum aesop::eInputMode |
The input mode determines how the player interacts with controls.
In "normal" mode, the controls (game pad, mouse, keyboard) are used for motion and game action. In "cursor" mode, the controls are used to manipulate on-screen menus and dialogs. Typically the player is allowed to toggle between modes.
Definition at line 70 of file terminal.cpp.
smart_ptr< converse::ConversationHost > aesop::createSystemMenuHost | ( | IN int | playerId, | |
IN Application * | app | |||
) |
Definition at line 324 of file converse-system-menu.cpp.
smart_ptr<converse::ConversationHost> aesop::createServerSearchHost | ( | IN Application * | app | ) |
static float aesop::tweakMouseMotion | ( | IN float | dx | ) | throw () [static] |
Definition at line 94 of file terminal.cpp.
static void aesop::clipCoord | ( | IN float & | x, | |
IN int | maxX | |||
) | throw () [static] |
Definition at line 111 of file terminal.cpp.
static float aesop::getRandomX | ( | void | ) | throw () [static] |
Definition at line 128 of file terminal.cpp.
static float aesop::getPotRatio | ( | IN const gamepad::pot_value_t & | pv | ) | throw () [static] |
Definition at line 140 of file terminal.cpp.
static float aesop::getJoyAxis | ( | IN const gamepad::pot_value_t & | rawValue | ) | throw () [static] |
Definition at line 156 of file terminal.cpp.
static void aesop::drawObject | ( | IN glut::Renderable * | model, | |
IN const glut::render_context_t & | rc, | |||
IN glut::RenderQueue * | rq, | |||
IN void * | context | |||
) | [static] |
Definition at line 47 of file map-drawer.cpp.
static void aesop::setLights | ( | void | ) | [static] |
Definition at line 80 of file map-drawer.cpp.
static void aesop::determineZone | ( | IN kdtree::Node * | node, | |
IN Zone * | root | |||
) | [static] |
Definition at line 130 of file map-kdtree.cpp.
static void aesop::deletePointers | ( | IN kdtree::Node * | node | ) | throw () [static] |
Definition at line 175 of file map-kdtree.cpp.
static void aesop::deleteAllEntries | ( | IN kdtree::Node * | node | ) | throw () [static] |
Definition at line 201 of file map-kdtree.cpp.
static void aesop::walkTree | ( | IN kdtree::Node * | node, | |
IN int | depth, | |||
IN kdtree_callback_fn | callback, | |||
IN void * | context | |||
) | [static] |
Definition at line 234 of file map-kdtree.cpp.
static int aesop::compareEntries | ( | IN const void * | p1, | |
IN const void * | p2 | |||
) | throw () [static] |
Definition at line 264 of file map-kdtree.cpp.
static void aesop::walkFrontToBack | ( | IN kdtree::Node * | node, | |
IN free_type_t & | freeList, | |||
IN const glut::render_context_t & | rc, | |||
IN glut::RenderQueue * | rq, | |||
IN const frustum_t * | f, | |||
IN LeafZone * | viewerZone, | |||
IN kdtree_object_fn | callback, | |||
IN void * | context | |||
) | [static] |
Definition at line 288 of file map-kdtree.cpp.
static void aesop::addInstanceToNode | ( | IN smart_ptr< Instance > & | instance, | |
IN LeafZone * | lz, | |||
IN kdtree::Node * | node | |||
) | [static] |
Definition at line 462 of file map-kdtree.cpp.
static void aesop::addDynamicObject | ( | IN smart_ptr< Instance > & | instance, | |
IN smart_ptr< PhysicsObject > & | obj, | |||
IN void * | context | |||
) | [static] |
Definition at line 500 of file map-kdtree.cpp.
static void aesop::nukeAllDynamicEntries | ( | IN kdtree::Node * | node, | |
free_type_t & | freeList | |||
) | [static] |
Definition at line 572 of file map-kdtree.cpp.
const int aesop::s_nMaxQueueSlots = 256 [static] |
Definition at line 46 of file application.cpp.
const int aesop::s_rediscoverEvery = 128 [static] |
Definition at line 48 of file application.cpp.
const float aesop::s_turnSpeed = 2.0 [static] |
Definition at line 83 of file terminal.cpp.
const int aesop::s_maxFreeListSize = 256 [static] |
Definition at line 52 of file map-kdtree.cpp.