Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3303 was 3279, checked in by dave, 20 years ago

branches/old.dave: Die Neigung des Raumschiffes ist jetzt nicht mehr so stark, und jetzt kann man auch 2 Tasten aufs mal drücken, ohne dass das Raumschiffsche jedes mal anhält:)

File size: 710 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{       int NumPressed;
14        float tottime;
15        float rottime;
16        float angle;
17        bool angleturn;
18       
19       
20        char cmd[CMD_LENGHT];   //!< the command delivered
21        bool bUp;       //!< false = command was activated / true = command was deactivated
22       
23        //! if cmd is "cursor" the coordinates of the mouse cursor are stored here
24        //!@{
25        Uint16 x, y;
26        //!@}
27       
28        //! if cmd is "cursor" the relative motion of the mouse cursor is stored here
29        //!@{
30        Sint16 xrel, yrel; 
31        //!@}
32} Command;
33
34#endif
Note: See TracBrowser for help on using the repository browser.