Move entityclass::setenemy() to entclass::setenemy()

This moves the setenemy() function onto the entity object itself,
instead of having to give the indice of the entity in obj.entities. This
makes the code more object-oriented so later I can simply change all
'entities[k]' to 'entity.' in entityclass::createentity().
This commit is contained in:
Misa
2020-04-03 12:29:57 -07:00
committed by Ethan Lee
parent c278f05397
commit d4cffed176
4 changed files with 89 additions and 89 deletions

View File

@@ -10,6 +10,8 @@ public:
bool outside();
void setenemy(int t);
public:
//Fundamentals
bool active, invis;