HoverRace  2.0
RaceEffects.h
Go to the documentation of this file.
1 // RaceEffects.h
2 //
3 //
4 // Copyright (c) 1995-1998 - Richard Langlois and Grokksoft Inc.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 //
22 
23 #pragma once
24 
25 #include "ContactEffect.h"
26 
27 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
28 # ifdef MR_ENGINE
29 # define MR_DllDeclare __declspec( dllexport )
30 # else
31 # define MR_DllDeclare __declspec( dllimport )
32 # endif
33 #else
34 # define MR_DllDeclare
35 #endif
36 
37 namespace HoverRace {
38 namespace Model {
39 
41 {
42 };
43 
44 class FuelGain : public ContactEffect
45 {
46 public:
47  double mFuelQty;
48 };
49 
51 {
52 public:
53  enum mType { eMissile, eMine };
54  int mType;
55  int mElementId;
56  int mHoverId;
57 };
58 
59 class CheckPoint : public ContactEffect
60 {
61 public:
62  enum CheckPointType { eFinishLine, eCheck1, eCheck2 };
64 };
65 
67 {
68 public:
70 };
71 
72 } // namespace Model
73 } // namespace HoverRace
74 
75 #undef MR_DllDeclare
Definition: RaceEffects.h:40
Definition: RaceEffects.h:62
int mElementPermId
Definition: RaceEffects.h:69
double mFuelQty
Seconds per millisecond at the pump.
Definition: RaceEffects.h:47
CheckPointType mType
Definition: RaceEffects.h:63
Base class for all contact effects.
Definition: ContactEffect.h:44
Definition: RaceEffects.h:66
Definition: RaceEffects.h:59
int mType
Definition: RaceEffects.h:54
mType
Definition: RaceEffects.h:53
int mHoverId
Craft that created the effect.
Definition: RaceEffects.h:56
Definition: Announcement.h:24
CheckPointType
Definition: RaceEffects.h:62
Definition: RaceEffects.h:44
Definition: RaceEffects.h:50
int mElementId
Used for mines only.
Definition: RaceEffects.h:55