Debian Codegraph @

src/vehicle.h

raw symbols SCIP
1 /***************************************************************************
2 vehicle.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: vehicle.h 375 2008-10-28 14:47:15Z 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_VEHICLE_H_
21 #define _OPENCITY_VEHICLE_H_ 1
22
23 #include "movement.h"
24
25 #define OC_VEHICLE_DEFAULT_SPEED 10
26
27
28 //========================================================================
29 /** Represent a vehicle object
30 */
31 class Vehicle: public Movement {
32 public:
33 enum VEHICLE_TYPE {
34 VEHICLE_STD, ///< standard vehicle
35 VEHICLE_BUS, ///< a bus
36 VEHICLE_SPORT, ///< high speed sport vehicle
37 VEHICLE_NUMBER
38 };
39
40
41 Vehicle( const VEHICLE_TYPE & type );
42 virtual ~Vehicle();
43
44
45 const bool
46 Move();
47
48 void
49 Start();
50
51
52 protected:
53 uint uiCapacity;
54 VEHICLE_TYPE enumType;
55
56
57 private:
58 void _CalculateDelta();
59
60 };
61
62 #endif
63
64
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