Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

vehicle.h

00001 /***************************************************************************
00002                           vehicle.h  -  description
00003          $Id: vehicle.h 5 2006-06-17 23:53:07Z neoneurone $
00004                              -------------------
00005     begin                : dim mai 16 2004
00006     copyright            : (C) 2004-2006 by Duong-Khang NGUYEN
00007     email                : neoneurone @ users sourceforge net
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   any later version.                                                    *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef _OPENCITY_VEHICLE_H_
00020 #define _OPENCITY_VEHICLE_H_ 1
00021 
00022 #include "movement.h"
00023 
00024 #define OC_VEHICLE_DEFAULT_SPEED    10
00025 
00026 
00027 //========================================================================
00030 class Vehicle: public Movement {
00031 public:
00032     enum VEHICLE_TYPE {
00033         VEHICLE_STD,                
00034         VEHICLE_BUS,                
00035         VEHICLE_SPORT,              
00036         VEHICLE_NUMBER
00037     };
00038 
00039     Vehicle();
00040     Vehicle( const VEHICLE_TYPE & type );
00041     virtual ~Vehicle();
00042 
00043 
00044     const bool
00045     Move();
00046 
00047     void
00048     Start();
00049 
00050 
00051 protected:
00052     uint uiCapacity;
00053     VEHICLE_TYPE enumType;
00054 
00055 
00056 private:
00057     void _CalculateDelta();
00058 
00059 };
00060 
00061 #endif
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 
00082 
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00090 
00091 
00092 
00093 

Generated on Sat Nov 11 10:21:10 2006 for OpenCity by  doxygen 1.4.2