summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorItemDropper.h
blob: 64d2f761ea904acd509418253707d138257e23a0 (plain) (tree)
1
2
3
4
5
6
            
 
                                                      
 

                     








                                                                          









                                                                                  
#pragma once

// mobTodo a more generic, not chickenspecific dropper

#include "Behavior.h"

/** Makes the mob periodically drop eggs. MobTodo: Make this more generic.

Connections to other behaviors:
 - None

Special connections:
 - None.

*/
class cBehaviorItemDropper : cBehavior
{
public:
	void AttachToMonster(cMonster & a_Parent);
	void PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)  override;

private:
		cMonster * m_Parent;  // Our Parent
		int m_EggDropTimer;
};