HoverRace
2.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
engine
MainCharacter
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
42
class
MR_DllDeclare
MainCharacterRenderer
:
public
Util::ObjectFromFactory
43
{
44
using
SUPER
=
Util::ObjectFromFactory
;
45
46
public
:
47
// Construction
48
MainCharacterRenderer
(
const
Util::ObjectFromFactoryId
&pId);
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
HoverRace::Util::ObjectFromFactoryId
Unique identifier for a Factory Object.
Definition:
DllObjectFactory.h:54
HoverRace::VideoServices::Viewport3D
Definition:
Viewport3D.h:53
MR_3DCoordinate
Definition:
WorldCoordinates.h:75
MR_Angle
MR_Int16 MR_Angle
Definition:
WorldCoordinates.h:96
MR_DllDeclare
#define MR_DllDeclare
Definition:
MainCharacterRenderer.h:36
HoverRace::VideoServices::ContinuousSound
Definition:
SoundServer.cpp:148
HoverRace::MainCharacter::MainCharacterRenderer::~MainCharacterRenderer
virtual ~MainCharacterRenderer()
Definition:
MainCharacterRenderer.h:49
HoverRace::VideoServices::ShortSound
Definition:
SoundServer.cpp:135
HoverRace::Util::ObjectFromFactory
Base class for object created with a Dll Factory.
Definition:
DllObjectFactory.h:86
HoverRace
Definition:
Announcement.h:24
HoverRace::MainCharacter::MainCharacterRenderer
Definition:
MainCharacterRenderer.h:42
1.8.11