GameObject class

Base classes

class PhysicObject

Derived classes

class Bomb final
class Box final
class Door
class ItemObject
class Pig
class Player final

Constructors, destructors, conversion operators

GameObject()
~GameObject() defaulted virtual

Public functions

void update() override
void updateAnimation() virtual
void draw() const override
void loadAnimation() virtual

Protected types

enum Direction { RIGHT = 1, LEFT = -1 }

Protected variables

bool is_flip_
Direction direction_
std::unordered_map<int, std::unique_ptr<Animation>> animations_
int current_animation_