-
Notifications
You must be signed in to change notification settings - Fork 0
/
VisualGameObject.h
38 lines (33 loc) · 1.08 KB
/
VisualGameObject.h
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
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <array>
#include <random>
#include "GameObject.h"
class VisualGameObject : public GameObject {
private:
short id;
short m_X, m_Y;
std::wstring m_pattern;
short size_X, size_Y;
short m_predefControls;
short m_currentFacing;
bool m_markedForDeath = false;
public:
VisualGameObject();
virtual std::wstring getPattern();
virtual void setPattern(std::wstring& in_pattern);
virtual void setSize(short x, short y);
virtual std::array<short, 2> getSize();
virtual void setPos(short in_X, short in_Y);
virtual void setPos(std::array<short, 2> in_Pos);
virtual std::array<short, 2> getPos();
virtual void setPredefControls(short& in_controls);
virtual void setObjFacing(short in_Facing);
virtual short getObjFacing();
virtual void move(short& in_controls, short interval);
virtual bool isDead();
virtual void markForDeath();
virtual void setHealth(short in_Health) = 0;
virtual short getHealth() = 0;
virtual void dealDamage(short in_Damage) = 0;
virtual VisualGameObject* refer() = 0;
};