-
Notifications
You must be signed in to change notification settings - Fork 0
/
sprite.cc
25 lines (19 loc) · 1000 Bytes
/
sprite.cc
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
#include "sprite.h"
using namespace std;
bool Sprite::isPC() const { return getType() == SpriteType::Human ||
getType() == SpriteType::Elf ||
getType() == SpriteType::Orc ||
getType() == SpriteType:: Dwarf; }
bool Sprite::isNPC() const { return getType() == SpriteType::Vampire ||
getType() == SpriteType::Werewolf ||
getType() == SpriteType::Merchant ||
getType() == SpriteType::Dragon ||
getType() == SpriteType::Troll ||
getType() == SpriteType::Goblin ||
getType() == SpriteType::Phoenix; }
bool Sprite::isItem() const { return getType() == SpriteType::AtkPot ||
getType() == SpriteType::DefPot ||
getType() == SpriteType::HPPot ||
getType() == SpriteType::Gold; }
bool Sprite::isElf() const { return getType() == SpriteType::Elf; }
Sprite::~Sprite() {}