summaryrefslogtreecommitdiff
path: root/source/logic/GameObject.cpp
blob: 07957e5afc4dc1006e91e74b1b1163c55280e367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "GameObject.h"

GameObject::GameObject(double x, double y, BitmapStore::Image image, Maze::Direction facing)
    :_x(x), _y(y), _destroyed(false), _image(image), _facing(facing)
{
}

double GameObject::x() const
{
    return _x;
}
double GameObject::y() const
{
    return _y;
}
bool GameObject::destroyed() const
{
    return _destroyed;
}
BitmapStore::Image GameObject::image() const
{
    return _image;
}
Maze::Direction GameObject::facing() const
{
    return _facing;
}