#include <GamePackage.h>
Inheritance diagram for CPlayerPiece:

Public Member Functions | |
| CPlayerPiece () | |
| CPlayerPiece. | |
| virtual | ~CPlayerPiece () |
| ~CPlayerPiece | |
| void | SetCEID (const CEID &id) |
| SetCEID. | |
| void | SetPiece (const CPiece *p) |
| SetPiece. | |
| CPiece * | GetPiece (bool doCopy=true) const |
| GetPiece. | |
| CEID | GetCEID () const |
| GetCEID. | |
| bool | Pack (int8 *ptr, uint32 &size) const |
| Pack. | |
| bool | UnPack (const int8 *ptr, const uint32 size) |
| UnPack. | |
Description: Class containing a CEID of a player and their corresponding piece.
Limitations: NONE
|
|
CPlayerPiece. Description: Class constructor Limitations: NONE |
|
|
~CPlayerPiece Description: Class deconstructor Limitations: If the piece was unpacked then there is a possibility that the vtable persisted and a delete function from outside of this DLL will be called when the piece is deleted, thus throwing an exception. All memory created in a DLL can only be deleted by that DLL. Cast the pointer as an int8* before deleting if it was unpacked. |
|
|
GetCEID. Description: Gets the CEID
|
|
|
GetPiece. Description: Gets the Piece
|
|
||||||||||||
|
Pack. Description: Packs this object into a linear buffer.
Implements IPackable. |
|
|
SetCEID. Description: Sets the CEID
|
|
|
SetPiece. Description: Sets the Piece
|
|
||||||||||||
|
UnPack. Description: Unpacks the buffer and sets its contents to this object so that this object contains the data from the buffer.
Implements IPackable. |