summaryrefslogtreecommitdiffstats
path: root/src/Entities/Compoments/InteractionComponent.h
blob: b8b99de791c9a7315277b48bebeed785368b9577 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include "../Entity.h"

class cInteractionComponent
{
protected:
	cEntity * m_Self;
public:
	cInteractionComponent(cEntity * a_Entity) : m_Self(a_Entity){}

	virtual void OnCollisionWithEntity(cEntity * a_Entity){}
	
	virtual void OnTakeDamage(TakeDamageInfo & a_TDI){}
	virtual void OnRightClicked(){}
	virtual void OnKilled(cEntity * a_Killer = NULL){}
	// virtual void OnPickup(){}
	// virtual void OnDestroy(){}

};