mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-15 00:08:07 -04:00
54 lines
1.5 KiB
C++
Executable File
54 lines
1.5 KiB
C++
Executable File
//========================================================================
|
|
//
|
|
// VehicleObject.cpp
|
|
//
|
|
// copyright 2001 Sony Online Entertainment
|
|
//
|
|
//========================================================================
|
|
|
|
#include "serverGame/FirstServerGame.h"
|
|
#include "serverGame/VehicleObject.h"
|
|
|
|
#include "serverGame/GameServer.h"
|
|
#include "sharedNetworkMessages/ObjectChannelMessages.h"
|
|
#include "serverGame/ServerVehicleObjectTemplate.h"
|
|
#include "serverGame/VehicleController.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------
|
|
VehicleObject::VehicleObject(const ServerVehicleObjectTemplate* newTemplate) :
|
|
TangibleObject(newTemplate)
|
|
{
|
|
addMembersToPackages();
|
|
}
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
VehicleObject::~VehicleObject()
|
|
{
|
|
}
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
/**
|
|
* Creates a default controller for this object.
|
|
*
|
|
* @return the object's controller
|
|
*/
|
|
Controller* VehicleObject::createDefaultController(void)
|
|
{
|
|
Controller* controller = new VehicleController(this);
|
|
|
|
setController(controller);
|
|
return controller;
|
|
} // VehicleObject::createDefaultController
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
void VehicleObject::getAttributes(stdvector<std::pair<std::string, Unicode::String> >::fwd &data) const
|
|
{
|
|
TangibleObject::getAttributes(data);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|