HoverRace  2.0
HoverRender.h
Go to the documentation of this file.
1 
2 // HoverRender.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 "../ObjFacTools/FreeElementBase.h"
26 #include "../MainCharacter/MainCharacterRenderer.h"
27 #include "../Exception.h"
28 
29 namespace HoverRace {
30  namespace ObjFacTools {
31  class ResActor;
32  class ResBitmap;
33  }
34 }
35 
36 
37 namespace HoverRace {
38 namespace ObjFac1 {
39 
41 {
43 
44 protected:
49 
50  int mFrame;
51 
64 
65  const ObjFacTools::ResBitmap *mCockpitBitmap[10];
66  const ObjFacTools::ResBitmap *mCockpitBitmap2[10];
67  const ObjFacTools::ResBitmap *mEonCockpitBitmap[10];
68 
69 public:
71  ObjFacTools::ResourceLib &resourceLib);
72  virtual ~HoverRender() { }
73 
74  void Render(VideoServices::Viewport3D *pDest,
75  const MR_3DCoordinate &pPosition, MR_Angle pOrientation,
76  BOOL pMotorOn, int pHoverId, unsigned int pModel) override;
77 
78  VideoServices::ShortSound *GetLineCrossingSound() override;
79  VideoServices::ShortSound *GetStartSound() override;
80  VideoServices::ShortSound *GetFinishSound() override;
81  VideoServices::ShortSound *GetBumpSound() override;
82  VideoServices::ShortSound *GetJumpSound() override;
83  VideoServices::ShortSound *GetFireSound() override;
84  VideoServices::ShortSound *GetMisJumpSound() override;
85  VideoServices::ShortSound *GetMisFireSound() override;
86  VideoServices::ShortSound *GetOutOfCtrlSound() override;
87  VideoServices::ShortSound *GetPickupSound() override;
88  VideoServices::ContinuousSound *GetMotorSound() override;
89  VideoServices::ContinuousSound *GetFrictionSound() override;
90 
91 public:
92  void Serialize(Parcel::ObjStream&) override
93  {
94  throw UnimplementedExn("HoverRender::Serialize()");
95  }
96 };
97 
98 } // namespace ObjFac1
99 } // namespace HoverRace
Unique identifier for a Factory Object.
Definition: DllObjectFactory.h:54
virtual ~HoverRender()
Definition: HoverRender.h:72
const ObjFacTools::ResActor * mActor0
Definition: HoverRender.h:45
VideoServices::ShortSound * pickupSound
Definition: HoverRender.h:61
const ObjFacTools::ResActor * mActor1
Definition: HoverRender.h:46
void Serialize(Parcel::ObjStream &) override
Definition: HoverRender.h:92
Definition: Viewport3D.h:53
const ObjFacTools::ResActor * mActor3
Definition: HoverRender.h:48
Definition: WorldCoordinates.h:75
VideoServices::ShortSound * mBumpSound
Definition: HoverRender.h:55
MR_Int16 MR_Angle
Definition: WorldCoordinates.h:96
VideoServices::ShortSound * mStartSound
Definition: HoverRender.h:53
VideoServices::ShortSound * mOutOfCtrlSound
Definition: HoverRender.h:60
Definition: SoundServer.cpp:148
VideoServices::ContinuousSound * mMotorSound
Definition: HoverRender.h:62
VideoServices::ShortSound * mMisJumpSound
Definition: HoverRender.h:58
VideoServices::ContinuousSound * mFrictionSound
Definition: HoverRender.h:63
const ObjFacTools::ResActor * mActor2
Definition: HoverRender.h:47
Definition: HoverRender.h:40
Base class for parcel serializers.
Definition: ObjStream.h:58
Definition: SoundServer.cpp:135
VideoServices::ShortSound * mJumpSound
Definition: HoverRender.h:56
Definition: ResActor.h:52
Exception indicating an unimplemented bit of code has been hit.
Definition: Exception.h:65
Base class for object created with a Dll Factory.
Definition: DllObjectFactory.h:86
VideoServices::ShortSound * mLineCrossingSound
Definition: HoverRender.h:52
VideoServices::ShortSound * mFinishSound
Definition: HoverRender.h:54
Definition: Announcement.h:24
VideoServices::ShortSound * mFireSound
Definition: HoverRender.h:57
Definition: ResBitmap.h:47
int mFrame
Definition: HoverRender.h:50
VideoServices::ShortSound * mMisFireSound
Definition: HoverRender.h:59
Legacy resource manager for ObjFac1.dat resources.
Definition: ResourceLib.h:55
Definition: MainCharacterRenderer.h:42