6 #include "SDL2/SDL_mixer.h"
127 virtual void Hit(
const std::string &tag);
156 GUIElement(
const std::shared_ptr<TextureWrapper> &texture);
164 GUIElement(
const std::shared_ptr<TextureWrapper> &texture,
const std::string &tag);
189 void Render(SDL_Renderer *renderer);
210 Brick(
const std::shared_ptr<TextureWrapper> &texture,
const std::string &tag);
216 void Hit(
const std::string &tag);
251 void Move(
float dt,
int screenWidth,
int screenHeight);
float y
Definition: TinyMath.hpp:19
float x
Definition: TinyMath.hpp:19
bool Collide(GameObject &el2, bool angle)
Definition: GameObject.cpp:291
Definition: GameObject.hpp:290
bool Collide(GameObject &el2, bool angle)
Definition: GameObject.cpp:149
static ostream & operator<<(ostream &os, const Level &l)
Definition: LevelManager.cpp:9
Definition: GameObject.hpp:147
Definition: GameObject.hpp:222
Vector3D GetSize()
Definition: GameObject.cpp:28
Definition: GameObject.hpp:201
Definition: GameObject.hpp:54
bool alive
whether this object is alive or not.
Definition: GameObject.hpp:132
const Vector3D & _GetDirection() const
Definition: GameObject.cpp:144
void Hit(const std::string &tag)
Definition: GameObject.cpp:283
GameObject()
default constructor for a gameobject
Brick(const std::shared_ptr< TextureWrapper > &texture, const std::string &tag)
Definition: GameObject.cpp:281
void Update(const Vector3D &position)
Definition: GameObject.cpp:23
const Vector3D & _GetPosition() const
Definition: GameObject.cpp:38
void DebugRender(SDL_Renderer *renderer)
Definition: GameObject.cpp:43
virtual void Hit(const std::string &tag)
Definition: GameObject.cpp:55
std::string mTag
the name of this object, should be unique to other objects unless grouping is desired...
Definition: GameObject.hpp:131
GUIElement()
blank GUIElement
Vector3D startPosition
start position
Definition: GameObject.hpp:141
friend std::ostream & operator<<(std::ostream &os, const GameObject &obj)
overload for << operator
Definition: GameObject.hpp:314
Definition: TinyMath.hpp:15
int mWidth
internal width
Definition: GameObject.hpp:137
CollisionType
Definition: GameObject.hpp:20
Vector3D mPosition
internal position
Definition: GameObject.hpp:140
void Render(SDL_Renderer *renderer)
Definition: GameObject.cpp:87
std::shared_ptr< TextureWrapper > mTexture
internal texture
Definition: GameObject.hpp:194
void Move(float dt, int screenWidth, int screenHeight)
Definition: GameObject.cpp:107
SDL_Rect mDestination
rectangle representing the bounding box
Definition: GameObject.hpp:195
MovingGUIElement()
Blank moving element.
int mHeight
internal height
Definition: GameObject.hpp:138
void UpdateDirection(const Vector3D &direction)
Definition: GameObject.cpp:137