2013-09-07 19:14:57 -04:00
|
|
|
|
|
|
|
// Boat.h
|
|
|
|
|
2013-09-08 11:56:16 -04:00
|
|
|
// Declares the cBoat class representing a boat in the world
|
2013-09-07 19:14:57 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Entity.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cBoat :
|
|
|
|
public cEntity
|
|
|
|
{
|
|
|
|
typedef cEntity super;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CLASS_PROTODEF(cBoat);
|
|
|
|
|
|
|
|
// cEntity overrides:
|
|
|
|
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
|
|
|
|
virtual void OnRightClicked(cPlayer & a_Player) override;
|
|
|
|
virtual void DoTakeDamage(TakeDamageInfo & TDI) override;
|
2013-12-16 12:03:39 -05:00
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
|
|
|
virtual void HandleSpeedFromAttachee(float a_Forward, float a_Sideways) override;
|
2013-09-07 19:14:57 -04:00
|
|
|
|
|
|
|
cBoat(double a_X, double a_Y, double a_Z);
|
2013-09-09 05:13:14 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|