CCmpDebug Class Reference

Debug component. More...

#include <cmpDebug.h>

Inheritance diagram for CCmpDebug:

CCmp

List of all members.

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.


Detailed Description

Debug component.

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.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Member Function Documentation

int CCmpDebug::set ( const EDIT_DATA editData  )  [virtual]

Report a set.

Write data with GE and frame info

<Set frame="999" fps="99" GEID="99">string</TAG> 
Parameters:
editData Data type and value (see EDIT_DATA struct).
Returns:
Zero (we don't want to effect the outcome).
See also:
EDIT_DATA

Implements CCmp.

int CCmpDebug::get ( EDIT_DATA editData  )  const [virtual]

Report a get.

Write data with GE and frame info:

<Get frame="999" fps="99" GEID="99">string</TAG> 
Parameters:
editData Data type and value (see EDIT_DATA struct).
Returns:
Zero (we don't want to effect the outcome).
See also:
EDIT_DATA

Implements CCmp.

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> 
Parameters:
actData Data type and value (see ACTION_DATA struct).
Returns:
Zero (we don't want to effect the outcome).
See also:
ACTION_DATA

Implements CCmp.


The documentation for this class was generated from the following files:
Generated on Fri Dec 28 12:55:07 2007 for template7 by  doxygen 1.5.4