HoverRace  2.0
FreeElementBase.h
Go to the documentation of this file.
1 // FreeElementBase.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 //
24 // The class defined in this file can be used as a base class for
25 // free elements
26 //
27 //
28 
29 #pragma once
30 
31 #include "../Model/MazeElement.h"
32 
33 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
34 # ifdef MR_ENGINE
35 # define MR_DllDeclare __declspec( dllexport )
36 # else
37 # define MR_DllDeclare __declspec( dllimport )
38 # endif
39 #else
40 # define MR_DllDeclare
41 #endif
42 
43 namespace HoverRace {
44 namespace ObjFacTools {
45 
46 class ResActor;
47 
49 {
51 
52 public:
54  SUPER(id), mActor(nullptr), mCurrentSequence(0), mCurrentFrame(0) { }
56 
57  // Rendering stuff
58  void Render(VideoServices::Viewport3D *pDest,
59  MR_SimulationTime pTime) override;
60 
61 protected:
62  const ResActor *mActor;
65 };
66 
67 } // namespace ObjFacTools
68 } // namespace HoverRace
69 
70 #undef MR_DllDeclare
Unique identifier for a Factory Object.
Definition: DllObjectFactory.h:54
Definition: FreeElementBase.h:48
Definition: Viewport3D.h:53
FreeElementBase(const Util::ObjectFromFactoryId &id)
Definition: FreeElementBase.h:53
MR_Int32 MR_SimulationTime
Definition: WorldCoordinates.h:106
Definition: MazeElement.h:151
int mCurrentFrame
Definition: FreeElementBase.h:64
const ResActor * mActor
Definition: FreeElementBase.h:62
Definition: ResActor.h:52
Base class for object created with a Dll Factory.
Definition: DllObjectFactory.h:86
Definition: Announcement.h:24
#define MR_DllDeclare
Definition: FreeElementBase.h:40
~FreeElementBase()
Definition: FreeElementBase.h:55
int mCurrentSequence
Definition: FreeElementBase.h:63