From e92b9e7ecbdf2918aab59d4eeb7bb5966430b264 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 24 Aug 2012 07:58:26 +0000 Subject: Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets. git-svn-id: http://mc-server.googlecode.com/svn/trunk@783 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cMonster.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'source/cMonster.h') diff --git a/source/cMonster.h b/source/cMonster.h index d46cd9205..f16b7aa56 100644 --- a/source/cMonster.h +++ b/source/cMonster.h @@ -27,22 +27,23 @@ public: virtual bool IsA( const char* a_EntityType ); - virtual cPacket * GetSpawnPacket(void) const override; + virtual void SpawnOn(cClientHandle & a_ClientHandle) override; virtual void Tick(float a_Dt) override; virtual void HandlePhysics(float a_Dt); - virtual void ReplicateMovement(); + virtual void ReplicateMovement(void); - virtual void TakeDamage( int a_Damage, cEntity* a_Instigator ); - virtual void KilledBy( cEntity* a_Killer ); + virtual void TakeDamage(int a_Damage, cEntity * a_Instigator) override; + virtual void KilledBy(cEntity * a_Killer) override; - virtual void MoveToPosition( const Vector3f & a_Position ); - virtual bool ReachedDestination(); + virtual void MoveToPosition(const Vector3f & a_Position); + virtual bool ReachedDestination(void); + + char GetMobType(void) const {return m_MobType; } - const char *GetState(); + const char * GetState(); void SetState(const AString & str); - static void ListMonsters(); virtual void CheckEventSeePlayer(); virtual void EventSeePlayer(cEntity *); -- cgit v1.2.3