#include <cmpDebug.h>
Public Member Functions | |
CCmpDebug (CGameEntity *pGE) | |
Create with default values. | |
Virtual methods | |
virtual int | set (const EDIT_DATA &editData) |
Report a set. | |
virtual int | get (EDIT_DATA &editData) const |
Report a get. | |
virtual int | act (const ACTION_DATA &actData) |
Report an action. | |
virtual void | update () |
Update this Cmp for a single frame. |
Outputs debug information into an XML file. Any GE with this cmp attached will print out every edit, get, and act command it gets. The output file can be viewed with any XML tool to see what is going on.
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
int CCmpDebug::set | ( | const EDIT_DATA & | editData | ) | [virtual] |
int CCmpDebug::get | ( | EDIT_DATA & | editData | ) | const [virtual] |
int CCmpDebug::act | ( | const ACTION_DATA & | actData | ) | [virtual] |
Report an action.
Write data with GE and frame info
<Act frame="999" fps="99" GEID="99">string</TAG>
actData | Data type and value (see ACTION_DATA struct). |
Implements CCmp.