HoverRace  2.0
MainCharacterRenderer.h
Go to the documentation of this file.
1 
2 // MainCharacterRenderer.h
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 "../VideoServices/Viewport3D.h"
26 #include "../VideoServices/SoundServer.h"
27 #include "../Util/DllObjectFactory.h"
28 
29 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
30 # ifdef MR_ENGINE
31 # define MR_DllDeclare __declspec( dllexport )
32 # else
33 # define MR_DllDeclare __declspec( dllimport )
34 # endif
35 #else
36 # define MR_DllDeclare
37 #endif
38 
39 namespace HoverRace {
40 namespace MainCharacter {
41 
43 {
45 
46 public:
47  // Construction
49  virtual ~MainCharacterRenderer() { }
50 
51  virtual void Render(VideoServices::Viewport3D *pDest,
52  const MR_3DCoordinate &pPosition, MR_Angle pOrientation,
53  BOOL pMotorOn, int pHoverId, unsigned int pModel) = 0;
54 
55  // Sound list
56  virtual VideoServices::ShortSound *GetLineCrossingSound() = 0;
57  virtual VideoServices::ShortSound *GetStartSound() = 0;
58  virtual VideoServices::ShortSound *GetFinishSound() = 0;
59  virtual VideoServices::ShortSound *GetBumpSound() = 0;
60  virtual VideoServices::ShortSound *GetJumpSound() = 0;
61  virtual VideoServices::ShortSound *GetFireSound() = 0;
62  virtual VideoServices::ShortSound *GetMisJumpSound() = 0;
63  virtual VideoServices::ShortSound *GetMisFireSound() = 0;
64  virtual VideoServices::ShortSound *GetOutOfCtrlSound() = 0;
65  virtual VideoServices::ShortSound *GetPickupSound() = 0;
66  virtual VideoServices::ContinuousSound *GetMotorSound() = 0;
67  virtual VideoServices::ContinuousSound *GetFrictionSound() = 0;
68 };
69 
70 } // namespace MainCharacter
71 } // namespace HoverRace
72 
73 #undef MR_DllDeclare
Unique identifier for a Factory Object.
Definition: DllObjectFactory.h:54
Definition: Viewport3D.h:53
Definition: WorldCoordinates.h:75
MR_Int16 MR_Angle
Definition: WorldCoordinates.h:96
#define MR_DllDeclare
Definition: MainCharacterRenderer.h:36
Definition: SoundServer.cpp:148
virtual ~MainCharacterRenderer()
Definition: MainCharacterRenderer.h:49
Definition: SoundServer.cpp:135
Base class for object created with a Dll Factory.
Definition: DllObjectFactory.h:86
Definition: Announcement.h:24
Definition: MainCharacterRenderer.h:42