mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user