File indexing completed on 2024-11-24 05:05:28
0001 #ifndef PRJVEHICLE_H 0002 #define PRJVEHICLE_H 0003 0004 #include <prjvhc_wheel.h> 0005 0006 namespace Codethink { 0007 namespace prjvhc { 0008 0009 class Vehicle { 0010 public: 0011 Vehicle(); 0012 ~Vehicle(); 0013 0014 void drive(); // noop. 0015 0016 private: 0017 void drive_impl(); 0018 0019 enum Wheels: short { 0020 E_FRONT_LEFT, 0021 E_FRONT_RIGHT, 0022 E_BACK_LEFT, 0023 E_BACK_RIGHT, 0024 COUNT 0025 }; 0026 0027 Wheel m_wheels[Wheels::COUNT]; 0028 }; 0029 0030 } // end namespace prjvhc 0031 } // end namespace codethink 0032 0033 #endif