Move entityclass::setenemyroom() to entclass::setenemyroom()

This moves the setenemyroom() function onto the entity object itself, so
I can more easily change all 'entities[k].' to 'entity.' in
entityclass::createentity() later.

Additionally, I've had to move the rn() macro from Entity.h to Ent.h, or
else entclass::setenemyroom() won't know what it is.
This commit is contained in:
Misa
2020-04-03 12:43:06 -07:00
committed by Ethan Lee
parent d4cffed176
commit f5a84d7972
4 changed files with 352 additions and 352 deletions

View File

@@ -1,6 +1,8 @@
#ifndef ENT_H
#define ENT_H
#define rn( rx, ry) ((rx) + ((ry) * 100))
class entclass
{
public:
@@ -12,6 +14,8 @@ public:
void setenemy(int t);
void setenemyroom(int rx, int ry);
public:
//Fundamentals
bool active, invis;