mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 14:29:20 +03:00
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:
1 parent
c278f05397
commit
d4cffed176
4 files changed
+89
-89
No files matched your search
@@ -10,6 +10,8 @@ public:
|
||||
|
||||
bool outside();
|
||||
|
||||
void setenemy(int t);
|
||||
|
||||
public:
|
||||
//Fundamentals
|
||||
bool active, invis;
|
||||
|
||||
Reference in new issue
Block a user