| 1 | /* |
| 2 | * Portions of this file are copyright Rebirth contributors and licensed as |
| 3 | * described in COPYING.txt. |
| 4 | * Portions of this file are copyright Parallax Software and licensed |
| 5 | * according to the Parallax license below. |
| 6 | * See COPYING.txt for license details. |
| 7 | |
| 8 | THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX |
| 9 | SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO |
| 10 | END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A |
| 11 | ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS |
| 12 | IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS |
| 13 | SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE |
| 14 | FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE |
| 15 | CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS |
| 16 | AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. |
| 17 | COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. |
| 18 | */ |
| 19 | |
| 20 | /* |
| 21 | * |
| 22 | * Prototypes, etc., for slew system |
| 23 | * |
| 24 | */ |
| 25 | |
| 26 | #pragma once |
| 27 | |
| 28 | #ifdef __cplusplus |
| 29 | #include "fwd-object.h" |
| 30 | #include "dsx-ns.h" |
| 31 | |
| 32 | //from slew.c |
| 33 | |
| 34 | #if 1 //ndef RELEASE //kill error on RELEASE build |
| 35 | |
| 36 | #ifdef DXX_BUILD_DESCENT |
| 37 | void slew_init(vmobjptr_t obj); // say this is slew obj |
| 38 | #endif |
| 39 | int slew_stop(void); // Stops object |
| 40 | void slew_reset_orient(); // Resets orientation |
| 41 | #ifdef DXX_BUILD_DESCENT |
| 42 | namespace dsx { |
| 43 | int slew_frame(int dont_check_keys); // Does slew frame |
| 44 | } |
| 45 | #endif |
| 46 | |
| 47 | #else |
| 48 | |
| 49 | #define slew_init(obj) |
| 50 | #define slew_stop(obj) |
| 51 | #define slew_reset_orient() |
| 52 | #define slew_frame(dont_check_keys) |
| 53 | |
| 54 | #endif |
| 55 | |
| 56 | #endif |