From 61895f84afc2de63db27a722b5928344d4289ecb Mon Sep 17 00:00:00 2001 From: Rtch90 Date: Thu, 12 Apr 2012 19:57:39 +0100 Subject: [PATCH] [Add] Being super lazy, but I have done something.. --- src/Actor/Actor.cpp | 4 ++-- src/Actor/Actor.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Actor/Actor.cpp b/src/Actor/Actor.cpp index c5467e9..31316a6 100644 --- a/src/Actor/Actor.cpp +++ b/src/Actor/Actor.cpp @@ -1,11 +1,11 @@ #include "Actor.h" Actor::Actor(void) : VELOCITY(10.0f) { - + _actor = new Sprite(); } Actor::~Actor(void) { - + delete _actor; } void Actor::LoadSprite(const char* filename, float w, float h) { diff --git a/src/Actor/Actor.h b/src/Actor/Actor.h index 7c0b82b..62bc4c9 100644 --- a/src/Actor/Actor.h +++ b/src/Actor/Actor.h @@ -1,5 +1,8 @@ #pragma once +#include + #include "../Sprite/Sprite.h" +#include "../Math/Vec2.h" class Actor { public: @@ -50,4 +53,6 @@ private: float h; Sprite* _actor; + Vec2 _spriteVector[4][4]; + };