HoverRace  2.0
PhysicalCollision.h
Go to the documentation of this file.
1 // PhysicalCollision.h
2 //
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 "ContactEffect.h"
26 
27 #include "../Model/Shapes.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 Model {
41 
43 {
44 public:
45  enum { eInfiniteWeight = 1000000 };
46 
47  double mWeight;
48 
49  MR_Int32 mXSpeed; // X-axis speed in mm/sec.
50  MR_Int32 mYSpeed; // Y-axis speed in mm/sec.
51  MR_Int32 mZSpeed; // Vertical speed in mm/sec, negative means down.
52 
53  // Helper functions
54  void ComputeCollision(const InertialMoment *pObstacle,
55  MR_Angle pHorizontalDirection);
56 };
57 
59 {
60 };
61 
62 } // namespace Model
63 } // namespace HoverRace
64 
65 #undef MR_DllDeclare
#define MR_DllDeclare
Definition: PhysicalCollision.h:36
Definition: PhysicalCollision.h:42
MR_Int32 mYSpeed
Definition: PhysicalCollision.h:50
MR_Int16 MR_Angle
Definition: WorldCoordinates.h:96
Base class for all contact effects.
Definition: ContactEffect.h:44
int32_t MR_Int32
Definition: MR_Types.h:43
MR_Int32 mZSpeed
Definition: PhysicalCollision.h:51
MR_Int32 mXSpeed
Definition: PhysicalCollision.h:49
double mWeight
Weight in Kg.
Definition: PhysicalCollision.h:47
Definition: PhysicalCollision.h:58
Definition: Announcement.h:24