summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Skeleton.h
blob: 486bfe6091ae9ffa15251c6ea5d02a60004ee267 (plain) (tree)
1
2
3
4
5
6
7
8
9
 

            
                              
 



 
                
                                 
 
                                         
 
       

                    
 
                                 
 

                                                                                     
                                                                                       
                                                                     

                                                                      
                                                             
 





                                                            
   

#pragma once

#include "AggressiveMonster.h"





class cSkeleton:
	public cAggressiveMonster
{
	using Super = cAggressiveMonster;

public:

	cSkeleton();

	CLASS_PROTODEF(cSkeleton)

	virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;

	virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
	virtual bool Attack(std::chrono::milliseconds a_Dt) override;
	virtual void SpawnOn(cClientHandle & a_ClientHandle) override;

	virtual bool IsUndead(void) override { return true; }

	bool IsChargingBow() const { return m_ChargingBow; }

private:

	bool m_ChargingBow;

} ;