#include <PhxCore.h>
Inheritance diagram for Phx::Core:

Public Member Functions | |
| virtual void | main (void)=0 |
| NamedInterface::Manager * | namedInterfaceManager () |
| Retrieves a pointer to the NamedInterface::Manager instance that is charged with keeping track of objects for this Core. | |
| const NamedInterface::Manager * | namedInterfaceManager () const |
| Description::Manager * | descriptionManager () |
| Retrieves a pointer to the Description::Manager instance that is charged with keeping track of Description types for this Core. | |
| const Description::Manager * | descriptionManager () const |
| virtual const String & | dataPath (void) const =0 |
| Returns the path to the Phoenix data directory. | |
| virtual uint32_t | threadCount (void) const =0 |
| Returns the number of threads used by the core. | |
| virtual const Ptr< Log > & | log (void)=0 |
| Returns the system log for this core. | |
Static Public Member Functions | |
| static const Ptr< Log > & | systemLog (void) |
| Returns the system log for the program. | |
| static void | newCore (void) |
| Creates the program Core instance. | |
| static Core * | core (void) |
| Returns the program Core instance. | |
| static void | deleteCore (void) |
| Deletes the program Core instance. | |
Static Public Attributes | |
| static const NamedInterface::Identifier | FRAME_START_EVENT_NOTIFIER_IDENTIFIER |
| Identifier for the system 'start frame' EventNotifier. | |
| static const String | FRAME_START_EVENT_NOTIFIER_NAME |
| Text name for the system 'start frame' EventNotifier. | |
| static const NamedInterface::Identifier | FRAME_END_EVENT_NOTIFIER_IDENTIFIER |
| Identifier for the system 'end frame' EventNotifier. | |
| static const String | FRAME_END_EVENT_NOTIFIER_NAME |
| Text name for the system 'end frame' EventNotifier. | |
| static const NamedInterface::Identifier | QUIT_EVENT_NOTIFIER_IDENTIFIER |
| Identifier for the system 'Quit' notifier. | |
| static const String | QUIT_EVENT_NOTIFIER_NAME |
| Text name for the system 'Quit' notifier. | |
| static const NamedInterface::Identifier | EXIT_EVENT_NOTIFIER_IDENTIFIER |
| Identifier for the system 'Exit' notifier. | |
| static const String | EXIT_EVENT_NOTIFIER_NAME |
| Text name for the system 'Exit' notifier. | |
| static const NamedInterface::Identifier | WALL_CLOCK_IDENTIFIER |
| Identifier for the system WallClock object. | |
| static const String | WALL_CLOCK_NAME |
| Text name for the system WallClock object. | |
| static const NamedInterface::Identifier | FRAME_CLOCK_IDENTIFIER |
| Identifier for the system FrameClock object. | |
| static const String | FRAME_CLOCK_NAME |
| Text name for the system FrameClock object. | |
Protected Member Functions | |
| void | setNamedInterfaceManager (const Ptr< NamedInterface::Manager > &manager) |
| void | setDescriptionManager (const Ptr< Description::Manager > &manager) |
| void | setCore (Core *core) |
The Core is the controller of the simulation. It presides over the top level facilities needed to run the program, and is responsible for running the main-loop of the simulation.
|
|
Returns the program Core instance. This is non-zero after newCore() is called, and before deleteCore() is called. |
|
|
Returns the path to the Phoenix data directory. With few exceptions, all game content will be located in this directory. While this will typically be located somewhere relative to the application binary, it is possible that it will be somewhere else (e.g., on another filesystem). Hence, all references to game data should use this path as their base to avoid configuration problems.
|
|
|
Retrieves a pointer to the Description::Manager instance that is charged with keeping track of Description types for this Core.
|
|
|
Returns the system log for this core. If this is the first core, this is the same log returned by Log::systemLog(). This log can also be accessed via the named interface manager using Log::LOG_IDENTIFIER. Use this log for general errors and information logging pertaining to program execution. Auxilliary logs should be used for logging non-essential information (e.g., for chat logs) that is not useful to administrators and/or developers. The system log is the place to look for crash/debug information, etc. and shouldn't be cluttered too heavily. |
|
|
Retrieves a pointer to the NamedInterface::Manager instance that is charged with keeping track of objects for this Core.
|
|
|
Returns the system log for the program. This is a safe call that is equivalent to core()->log() when the core is running. After the core shuts down, the returned long redirects to std::cerr.
|
|
|
Returns the number of threads used by the core. This information is typically irrelevant to clients -- some may require it, however, for selecting thread affinities. |
|
|
Identifier for the system 'Exit' notifier. This notifier is notified by the Core after the last frame has finished and the program is about to exit. This notification allows final processing to occur before the program finishes.
|
|
|
Identifier for the system FrameClock object.
|
|
|
Identifier for the system 'Quit' notifier. The 'quit' notifier is an EventNotifier that can be triggered by any client in order to terminate the program. The frame will finish executing, the Core will issue the 'Exit' notification, the main loop will finish and the program will exit.
|
|
|
Identifier for the system WallClock object.
|
1.4.2