File indexing completed on 2024-11-24 05:05:28

0001 #include <prjact_actor.h>
0002 
0003 #include <prjvhc_vehicle.h>
0004 
0005 using namespace Codethink::prjact;
0006 
0007 Actor::Actor()
0008 : m_vehicle_p(nullptr) {
0009 
0010 }
0011 
0012 Actor::~Actor() {
0013 
0014 }
0015 
0016 void Actor::setVehicle(Codethink::prjvhc::Vehicle *vehicle)
0017 {
0018     m_vehicle_p = vehicle;
0019     if (vehicle) {
0020         vehicle->drive();
0021     }
0022 }