Debian Codegraph @

Descent3/slew.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * Header for slew.c
21 *
22 */
23
24 #ifndef _SLEW_H
25 #define _SLEW_H
26
27 #if (defined(_DEBUG) || defined(EDITOR))
28
29 #include "object.h"
30
31 #define SLEW_MOVE 1
32 #define SLEW_KEY 2
33 #define SLEW_ROTATE 4
34
35 void SlewResetOrient(object *obj); // Resets the object's orientation
36 int SlewFrame(object *obj,
37 int movement_limitations = 0); // Moves the object for one frame (returns flags. 1=MOVED 2=KEY_ACTION
38 int SlewStop(object *obj); // Stop the object
39 void SlewControlInit(); // initializes controller system for slewer
40
41 extern float Slew_key_speed;
42 // If there's an active joystick, this is the stick number. Else, this is -1
43 extern int Joystick_active;
44
45 #else
46
47 #define SlewResetOrient(obj)
48 #define SlewFrame(obj)
49 #define SlewStop(obj)
50 #define SlewControlInit()
51
52 #endif
53
54 #endif