HoverRace  2.0
FuelSource.h
Go to the documentation of this file.
1 
2 // FuelSource.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 
31 class FuelSource :
32  public Model::FreeElement,
33  protected Model::CylinderShape
34 {
36 
37 public:
38  FuelSource();
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
std::vector< ContactEffect * > ContactEffectList
Definition: ContactEffect.h:56
Model::ContactEffectList mContactEffectList
Definition: FuelSource.h:56
MR_Int32 ZMin() const override
Definition: FuelSource.cpp:32
MR_Int32 AxisX() const override
Definition: FuelSource.cpp:42
Definition: Shapes.h:50
Definition: MazeElement.h:151
MR_Int32 ZMax() const override
Definition: FuelSource.cpp:37
Definition: Shapes.h:75
MR_Int32 RayLen() const override
Definition: FuelSource.cpp:52
const Model::ContactEffectList * GetEffectList() override
Definition: FuelSource.h:51
int32_t MR_Int32
Definition: MR_Types.h:43
FuelSource()
Definition: FuelSource.cpp:57
Base class for object created with a Dll Factory.
Definition: DllObjectFactory.h:86
Definition: FuelSource.h:31
const Model::ShapeInterface * GetReceivingContactEffectShape() override
Get the shape that gives an effect when touched by a moving element.
Definition: FuelSource.h:52
Definition: Announcement.h:24
Model::FuelGain mFuelEffect
Definition: FuelSource.h:55
~FuelSource()
Definition: FuelSource.h:39
Definition: RaceEffects.h:44
MR_Int32 AxisY() const override
Definition: FuelSource.cpp:47