/*************************************************************************** vehicle.h - description ------------------- begin : may 16th, 2004 copyright : (C) 2004-2007 by Duong Khang NGUYEN email : neoneurone @ gmail com $Id: vehicle.h 375 2008-10-28 14:47:15Z neoneurone $ ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * any later version. * * * ***************************************************************************/ #ifndef _OPENCITY_VEHICLE_H_ #define _OPENCITY_VEHICLE_H_ 1 #include "movement.h" #define OC_VEHICLE_DEFAULT_SPEED 10 //======================================================================== /** Represent a vehicle object */ class Vehicle: public Movement { public: enum VEHICLE_TYPE { VEHICLE_STD, ///< standard vehicle VEHICLE_BUS, ///< a bus VEHICLE_SPORT, ///< high speed sport vehicle VEHICLE_NUMBER }; Vehicle( const VEHICLE_TYPE & type ); virtual ~Vehicle(); const bool Move(); void Start(); protected: uint uiCapacity; VEHICLE_TYPE enumType; private: void _CalculateDelta(); }; #endif