HoverRace  2.0
DoubleSpeedSource.h
Go to the documentation of this file.
1 
2 // DoubleSpeedSource.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 "../Model/MazeElement.h"
26 #include "../Model/RaceEffects.h"
27 
28 namespace HoverRace {
29 namespace ObjFac1 {
30 
32  public Model::FreeElement,
33  protected Model::CylinderShape
34 {
36 
37 public:
40 
41 protected:
42  // Shape interface
43  MR_Int32 ZMin() const override;
44  MR_Int32 ZMax() const override;
45  MR_Int32 AxisX() const override;
46  MR_Int32 AxisY() const override;
47  MR_Int32 RayLen() const override;
48 
49 protected:
50  // ContactEffectShapeInterface
52  const Model::ShapeInterface *GetReceivingContactEffectShape() override { return this; }
53 
54 private:
57 };
58 
59 } // namespace ObjFac1
60 } // namespace HoverRace
Definition: RaceEffects.h:40
std::vector< ContactEffect * > ContactEffectList
Definition: ContactEffect.h:56
DoubleSpeedSource()
Definition: DoubleSpeedSource.cpp:60
Definition: Shapes.h:50
Definition: DoubleSpeedSource.h:31
Definition: MazeElement.h:151
MR_Int32 RayLen() const override
Definition: DoubleSpeedSource.cpp:55
Definition: Shapes.h:75
const Model::ContactEffectList * GetEffectList() override
Definition: DoubleSpeedSource.h:51
int32_t MR_Int32
Definition: MR_Types.h:43
Model::ContactEffectList mContactEffectList
Definition: DoubleSpeedSource.h:56
Base class for object created with a Dll Factory.
Definition: DllObjectFactory.h:86
MR_Int32 ZMax() const override
Definition: DoubleSpeedSource.cpp:40
const Model::ShapeInterface * GetReceivingContactEffectShape() override
Get the shape that gives an effect when touched by a moving element.
Definition: DoubleSpeedSource.h:52
MR_Int32 ZMin() const override
Definition: DoubleSpeedSource.cpp:35
Definition: Announcement.h:24
Model::SpeedDoubler mSpeedEffect
Definition: DoubleSpeedSource.h:55
~DoubleSpeedSource()
Definition: DoubleSpeedSource.h:39
MR_Int32 AxisY() const override
Definition: DoubleSpeedSource.cpp:50
MR_Int32 AxisX() const override
Definition: DoubleSpeedSource.cpp:45