HoverRace  2.0
MapSprite.h
Go to the documentation of this file.
1 
2 // MapSprite.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/Level.h"
26 #include "../VideoServices/Sprite.h"
27 
28 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
29 # ifdef MR_ENGINE
30 # define MR_DllDeclare __declspec( dllexport )
31 # else
32 # define MR_DllDeclare __declspec( dllimport )
33 # endif
34 #else
35 # define MR_DllDeclare
36 #endif
37 
38 namespace HoverRace {
39 namespace MazeCompiler {
40 
42 {
44 
45 protected:
46  int mXMin;
47  int mXMax;
48  int mYMin;
49  int mYMax;
50 
51  void ComputeMinMax(Model::Level *pLevel);
52  void DrawMap(Model::Level *pLevel);
53 
54 public:
55  BOOL CreateMap(Model::Level *pLevel,
56  int &pX0, int &pY0, int &pX1, int &pY1);
57 };
58 
59 } // namespace MazeCompiler
60 } // namespace HoverRace
61 
62 #undef MR_DllDeclare
int mYMin
Definition: MapSprite.h:48
int mXMin
Definition: MapSprite.h:46
#define MR_DllDeclare
Definition: MapSprite.h:35
Definition: Sprite.h:47
Definition: MapSprite.h:41
Definition: Level.h:74
Definition: Announcement.h:24
int mXMax
Definition: MapSprite.h:47
int mYMax
Definition: MapSprite.h:49