Debian Codegraph @

src/destination.h

raw symbols SCIP
1 /***************************************************************************
2 destination.h - description
3 -------------------
4 begin : may 16th, 2004
5 copyright : (C) 2004-2007 by Duong Khang NGUYEN
6 email : neoneurone @ gmail com
7
8 $Id: destination.h 450 2010-11-21 19:11:43Z neoneurone $
9 ***************************************************************************/
10
11 /***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * any later version. *
17 * *
18 ***************************************************************************/
19
20 #ifndef _OPENCITY_DESTINATION_H_
21 #define _OPENCITY_DESTINATION_H_ 1
22
23 #include "main.h"
24
25 enum OPENCITY_DIRECTION;
26
27
28 //========================================================================
29 /** It's just a simple class which contains the informations about the
30 OC W,L coordinates, in which direction it is and how many OC kms
31 it is far away. Do not use pointers here !
32 */
33 class Destination {
34 public:
35 OPENCITY_DIRECTION _eDir; ///< Which direction ?
36 uint _uiW; ///< The OC W, L coordinates
37 uint _uiL;
38 int _iHMin, _iHMax; ///< The height of the current square (on the Oy axis)
39 uint _uiTime; ///< How many time do I have to move in this direction ?
40 OC_BYTE _ubTraffic; ///< Local traffic at this WL
41
42
43 Destination();
44 ~Destination();
45
46
47 /*=====================================================================*/
48 /* STATIC METHODS */
49 /*=====================================================================*/
50
51 //========================================================================
52 /** Get the direction from A to B. The coordinates designated by the
53 two destinations must be side by side on the map
54 \param rcA First destination
55 \param rcB Second destination
56 \return The direction from A to B
57 */
58 static OPENCITY_DIRECTION
59 GetDir(
60 const Destination & rcA,
61 const Destination & rcB);
62 };
63
64 #endif
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97