/*! \file message_structures.h \brief contains defintitons of messages that can be passed between classes */ #ifndef _MESSAGESTRUCTURES_H #define _MESSAGESTRUCTURES_H #define CMD_LENGHT 16 //! structure that contains a command message typedef struct { char cmd[CMD_LENGHT]; //!< the command delivered bool bUp; //!< false = command was activated / true = command was deactivated //! if cmd is "cursor" the coordinates of the mouse cursor are stored here //!@{ Uint16 x, y; //!@} //! if cmd is "cursor" the relative motion of the mouse cursor is stored here //!@{ Sint16 xrel, yrel; //!@} } Command; enum DAMAGETYPE{ DMG_ENERY}; //! structure that contains a damage message typedef struct { DAMAGETYPE type; //!< The type of the damage delivered float dmg; //!< The amount of damage delivered } Damage; #endif