From f7217d5f7c9b290de2dac8837b265201b856ee16 Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Wed, 20 Aug 2014 16:39:44 -0600 Subject: Stubbed out the base types of Components. --- src/Mobs/Components/AllComponents.h | 5 ++++- src/Mobs/Components/AttackComponent.h | 16 ++++++++++++++++ src/Mobs/Components/EnvironmentComponent.h | 16 ++++++++++++++++ src/Mobs/Components/MovementComponent.h | 16 ++++++++++++++++ 4 files changed, 52 insertions(+), 1 deletion(-) (limited to 'src/Mobs') diff --git a/src/Mobs/Components/AllComponents.h b/src/Mobs/Components/AllComponents.h index 1c8a76714..04de7a91b 100644 --- a/src/Mobs/Components/AllComponents.h +++ b/src/Mobs/Components/AllComponents.h @@ -1,3 +1,6 @@ #pragma once -#include "AIAggressiveComponent.h" +#include "AIComponent.h" +#include "AttackComponent.h" +#include "EnvironmentComponent.h" +#include "MovementComponent.h" diff --git a/src/Mobs/Components/AttackComponent.h b/src/Mobs/Components/AttackComponent.h index e69de29bb..4318070bd 100644 --- a/src/Mobs/Components/AttackComponent.h +++ b/src/Mobs/Components/AttackComponent.h @@ -0,0 +1,16 @@ +#pragma once + +class cNewMonster; +class cEntity; +class cChunk; + +class cAttackComponent +{ +protected: + cNewMonster * m_Self; +public: + cAttackComponent(cNewMonster * a_Entity); + virtual ~cAttackComponent(){} + + virtual void Tick(float a_Dt, cChunk & a_Chunk){} +}; diff --git a/src/Mobs/Components/EnvironmentComponent.h b/src/Mobs/Components/EnvironmentComponent.h index e69de29bb..0011b72e5 100644 --- a/src/Mobs/Components/EnvironmentComponent.h +++ b/src/Mobs/Components/EnvironmentComponent.h @@ -0,0 +1,16 @@ +#pragma once + +class cNewMonster; +class cEntity; +class cChunk; + +class cEnvironmentComponent +{ +protected: + cNewMonster * m_Self; +public: + cEnvironmentComponent(cNewMonster * a_Entity); + virtual ~cEnvironmentComponent(){} + + virtual void Tick(float a_Dt, cChunk & a_Chunk){} +}; diff --git a/src/Mobs/Components/MovementComponent.h b/src/Mobs/Components/MovementComponent.h index e69de29bb..3b8b7e9eb 100644 --- a/src/Mobs/Components/MovementComponent.h +++ b/src/Mobs/Components/MovementComponent.h @@ -0,0 +1,16 @@ +#pragma once + +class cNewMonster; +class cEntity; +class cChunk; + +class cMovementComponent +{ +protected: + cNewMonster * m_Self; +public: + cMovementComponent(cNewMonster * a_Entity); + virtual ~cMovementComponent(){} + + virtual void Tick(float a_Dt, cChunk & a_Chunk){} +}; -- cgit v1.2.3