|
resonance 1.0.1
|
Front-end renderer that draws nothing, chosen in place of MetRenderer by a configuration option. More...
#include <metnullrenderer.h>


Public Member Functions | |
| MetNullRenderer () | |
| Construct the renderer and start the front-end loads. | |
| virtual | ~MetNullRenderer () |
| Destroy MetFreqMakerAssetManager through MetFreqMakerAssetManager::Destroy(). | |
| virtual void | DispatchPriv (Message *pMsg) |
| Handle one message. | |
| virtual void | Update () |
| Unrecovered. | |
| virtual void | Draw () |
| Start the game once the ruleset's level has loaded, then pump the timers in the front end. | |
| Public Member Functions inherited from RendererBase | |
| RendererBase () | |
| Start the queue with the router as its one sink. | |
| virtual | ~RendererBase () |
| Release the queue and the router. | |
| virtual void | Dispatch (Message *pMsg) |
| Accept a message into the queue. | |
| virtual void | Start () |
| Start the renderer running. | |
| virtual void | Stop () |
| Stop the renderer running. | |
| virtual void | PollMessages () |
| Deliver every queued message. | |
| virtual void | UpdateSimple () |
| Advance the renderer by one frame without the full update. | |
| virtual void | DrawSimple () |
| Draw the frame without the full draw. | |
| Public Member Functions inherited from MsgSink | |
| void * | operator new (size_t nSize) |
| Allocate a sink from the tagged heap under the tag "MsgSink". | |
| void | operator delete (void *pBlock) |
| Release a sink to the tagged heap. | |
| virtual | ~MsgSink () |
Front-end renderer that draws nothing, chosen in place of MetRenderer by a configuration option.
Its RTTI descriptor is at 0x008eff00. It has RendererBase as its one public base at offset 0. MetaGameWorld::CreateRenderer() allocates it at 0x88 bytes under the MsgSink tag when PythonEvt::QueryOption() reports option 0xcb set. Its vtable at 0x00801d58 has eleven entries, the same length as RendererBase's. Against that table it overrides the destructor and slots 3, 7, and 8, the three slots RendererBase declares pure. Slots 4 and 5 have two-instruction empty bodies at 0x00311a10 and 0x00311a18, the base's empty bodies re-emitted rather than overrides, and are not declared.
In place of the front-end screens, the X button evaluates a ruleset script template and loads the level it describes, and slot 8 starts a local game once the load finishes.
| MetNullRenderer::MetNullRenderer | ( | ) |
Construct the renderer and start the front-end loads.
Seeds the R250 generator with a fixed value, creates MetFreqMakerAssetManager and starts its asset load, creates GlobalSettings, enables drawing on the game manager, and rebuilds the stage lists.
|
virtual |
Destroy MetFreqMakerAssetManager through MetFreqMakerAssetManager::Destroy().
|
virtual |
Handle one message.
MsgSink slot 3, pure in RendererBase.
Only a RawControllerMsg is acted on, through OnRawController().
| pMsg | The message. |
Implements MsgSink.
|
virtual |
Unrecovered.
RendererBase slot 7, pure in the base, with an empty body here.
Implements RendererBase.
|
virtual |
Start the game once the ruleset's level has loaded, then pump the timers in the front end.
RendererBase slot 8, pure in the base. Both Renderer::PollCommon() and Renderer::PollLevel() run on every call. When a load is pending and both report done, the roster is replaced with one default persona per player, each identified as freq player and its index, the game mode becomes solo for one player and local otherwise, the settings are applied, and a BeginGameLocalMsg is queued. MainLoop::PumpTimers() runs whenever there is no game world.
Implements RendererBase.