Last change
on this file since 2624 was
2192,
checked in by chris, 20 years ago
|
orxonox/branches/chris: it's now possible to add derivations of Track to the World; hit function declaration finalized; implemented splash damage function (World::explosion())
|
File size:
840 bytes
|
Rev | Line | |
---|
[2141] | 1 | /*! |
---|
| 2 | \file message_structures.h |
---|
| 3 | \brief contains defintitons of messages that can be passed between classes |
---|
| 4 | */ |
---|
[2066] | 5 | |
---|
| 6 | #ifndef _MESSAGESTRUCTURES_H |
---|
| 7 | #define _MESSAGESTRUCTURES_H |
---|
| 8 | |
---|
| 9 | #define CMD_LENGHT 16 |
---|
| 10 | |
---|
[2141] | 11 | //! structure that contains a command message |
---|
[2066] | 12 | typedef struct |
---|
| 13 | { |
---|
[2141] | 14 | char cmd[CMD_LENGHT]; //!< the command delivered |
---|
| 15 | bool bUp; //!< false = command was activated / true = command was deactivated |
---|
| 16 | |
---|
| 17 | //! if cmd is "cursor" the coordinates of the mouse cursor are stored here |
---|
| 18 | //!@{ |
---|
[2066] | 19 | Uint16 x, y; |
---|
[2141] | 20 | //!@} |
---|
| 21 | |
---|
| 22 | //! if cmd is "cursor" the relative motion of the mouse cursor is stored here |
---|
| 23 | //!@{ |
---|
| 24 | Sint16 xrel, yrel; |
---|
| 25 | //!@} |
---|
[2192] | 26 | } Command; |
---|
| 27 | |
---|
| 28 | enum DAMAGETYPE{ DMG_ENERY}; |
---|
[2066] | 29 | |
---|
[2192] | 30 | //! structure that contains a damage message |
---|
| 31 | typedef struct |
---|
| 32 | { |
---|
| 33 | DAMAGETYPE type; //!< The type of the damage delivered |
---|
| 34 | float dmg; //!< The amount of damage delivered |
---|
| 35 | } Damage; |
---|
| 36 | |
---|
[2066] | 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.