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

Vehicle Class Reference

#include <vehicle.h>

Inheritance diagram for Vehicle:

Movement List of all members.

Public Types

enum  VEHICLE_TYPE { VEHICLE_STD, VEHICLE_BUS, VEHICLE_SPORT, VEHICLE_NUMBER }

Public Member Functions

 Vehicle (const VEHICLE_TYPE &type)
const bool Move ()
void Start ()

Protected Attributes

uint uiCapacity
VEHICLE_TYPE enumType

Private Member Functions

void _CalculateDelta ()

Detailed Description

Represent a vehicle object

Definition at line 30 of file vehicle.h.


Member Enumeration Documentation

enum Vehicle::VEHICLE_TYPE
 

Enumeration values:
VEHICLE_STD  standard vehicle
VEHICLE_BUS  a bus
VEHICLE_SPORT  high speed sport vehicle

Definition at line 32 of file vehicle.h.


Member Function Documentation

const bool Vehicle::Move  )  [virtual]
 

Tell the object to move

Returns:
True if the object has moved successfully, false otherwise

Implements Movement.

Definition at line 69 of file vehicle.cpp.

References Movement::_fCurrentW, Movement::_fDeltaW, Destination::_iHMin, Destination::_uiL, Destination::_uiTime, Destination::_uiW, Movement::destCurrent, Movement::uiCurrentIndex, Movement::uiFramePerUnit, Movement::uiNumberOfFrame, and Movement::vdest.

void Vehicle::Start  )  [virtual]
 

Initialize the movement. It should be called before any call to the Move() method

See also:
Move()

Implements Movement.

Definition at line 117 of file vehicle.cpp.

References Movement::_fCurrentW, Destination::_iHMin, Destination::_uiL, Destination::_uiW, Movement::destCurrent, Movement::uiCurrentIndex, Movement::uiNumberOfFrame, and Movement::vdest.


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2