|
| | OvyChat (DataArray *pConfig, DataArray *pDefaults, RndView *pHudView) |
| | Construct an empty chat, and register it for the keyboard and for channel 3 of the chat.
|
| | ~OvyChat () override |
| | Unregister the chat and destroy its lines.
|
| void | Reset () |
| | Empty the lines, hide the panel, and stop the editing.
|
| void | Poll () |
| | Advance the panel and the lines, and show the next waiting line.
|
| bool | AddLine (ChatMsg *pMsg) |
| | Queue a line that arrived from another console.
|
| bool | HandleKey (KeyboardKeyMsg *pMsg) |
| | Apply a key to the line the player types, starting or ending the editing.
|
| void | Layout (bool bEditing) |
| | Move every line one row up, the top line wrapping round to the bottom.
|
| void | Collapse () |
| | Drop the line the player typed in, moving every other line one row down.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Act on a line of chat or a key.
|
| const std::list< std::unique_ptr< Line > > & | GetLines () const |
| RndDrawable * | GetDrawable () const |
| void * | operator new (size_t nSize) |
| | Allocate a sink from the pool heaps under the tag "MsgSink".
|
| void | operator delete (void *pBlock) |
| | Return a sink to the pool heaps.
|
| virtual | ~MsgSink () |
| virtual bool | Dispatch (Message *pMsg) |
| | Accept a message.
|
| void * | operator new (size_t size) |
| | Allocate from the main heap under the name MsgSink.
|
| void | operator delete (void *mem) |
| | Return memory to its heap.
|
| virtual | ~MsgSink () |
| | Destroy the sink.
|
| virtual bool | Dispatch (Message *msg) |
| | Handle a message.
|
Chat of an online game on the head-up display, with the line a player types.
The RTTI records the class as deriving from MsgSink. The object is 0x80 bytes. The panel slides in when a line arrives or a key is pressed, and slides out once no line has moved for chat_timeout milliseconds. The front of mLines is the bottom line, which the player types in.