-
Notifications
You must be signed in to change notification settings - Fork 6
/
CargoCar.h
33 lines (27 loc) · 979 Bytes
/
CargoCar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//=========================================================================================
// CargoCar domain model.
// Represents a cargo car.
// Inherited from OwnedVehicle class.
//=========================================================================================
#pragma once
#include "Stdafx.h"
#include "OwnedVehicle.h"
namespace vms
{
public ref class CargoCar : public OwnedVehicle
{
public:
enum class CargoCarType { MINITRUCK, PICKUP, DELIVERY_VAN, BOX_TRUCK, DUMP_TRUCK,
TANK_TRUCK, SEMI_TRAILER, FULL_TRAILER, REFRIDGERATOR };
CargoCar();
CargoCar(OwnedVehicle^ vehicle);
int getGrossVehicleMass();
CargoCarType getCargoType();
void setGrossVehicleMass(int gvm);
void setCargoCarType(CargoCarType cargoType);
virtual bool allowForPersonalUse() override;
private:
int _grossVehicleMass; // same as gross vehicle weight rating (GVWR)
CargoCarType _cargoType;
};
}