Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/old.dave/src/message_structures.h.bak @ 3350

Last change on this file since 3350 was 3280, checked in by dave, 20 years ago

branches/old.dave: Nochmal das gleiche, Raumschiff sollte drehen, aber nur 20°

File size: 693 bytes
Line 
1/*!
2        \file message_structures.h
3        \brief contains defintitons of messages that can be passed between classes
4*/
5
6#ifndef _MESSAGESTRUCTURES_H
7#define _MESSAGESTRUCTURES_H
8
9#define CMD_LENGHT 16
10
11//! structure that contains a command message
12typedef struct
13{       float tottime;
14        float rottime;
15        float angle;
16        bool angleturn;
17       
18       
19        char cmd[CMD_LENGHT];   //!< the command delivered
20        bool bUp;       //!< false = command was activated / true = command was deactivated
21       
22        //! if cmd is "cursor" the coordinates of the mouse cursor are stored here
23        //!@{
24        Uint16 x, y;
25        //!@}
26       
27        //! if cmd is "cursor" the relative motion of the mouse cursor is stored here
28        //!@{
29        Sint16 xrel, yrel;
30        //!@}
31} Command;
32
33#endif
Note: See TracBrowser for help on using the repository browser.