HoverRace  2.0
ContactEffect.h
Go to the documentation of this file.
1 // ContactEffect.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 <vector>
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 
45 {
46 public:
47  virtual ~ContactEffect() { }
48 
53  virtual const ContactEffect *GetAlternate() const { return nullptr; }
54 };
55 
56 using ContactEffectList = std::vector<ContactEffect*>;
57 
58 } // namespace Model
59 } // namespace HoverRace
60 
61 #undef MR_DllDeclare
std::vector< ContactEffect * > ContactEffectList
Definition: ContactEffect.h:56
#define MR_DllDeclare
Definition: ContactEffect.h:34
Base class for all contact effects.
Definition: ContactEffect.h:44
Definition: Announcement.h:24
virtual ~ContactEffect()
Definition: ContactEffect.h:47
virtual const ContactEffect * GetAlternate() const
If the effect is unknown, use that one instead.
Definition: ContactEffect.h:53