forked from Wirlaburla/P3NG0
stuff
This commit is contained in:
12
src/drone.h
12
src/drone.h
@@ -1,5 +1,6 @@
|
||||
#ifndef H_DRONE
|
||||
#define H_DRONE
|
||||
#include "group.h"
|
||||
|
||||
class Drone {
|
||||
public:
|
||||
@@ -10,6 +11,17 @@ public:
|
||||
Drone(char* &_name) : name{ _name } { };
|
||||
bool operator != (Drone &d) { return strcmp(this->name, d.name) != 0; };
|
||||
Drone operator = (Drone *d) { return *d; };
|
||||
void setGroup(Group* newGroup) {
|
||||
activeGroup = newGroup;
|
||||
}
|
||||
Group* getCurrentGroup() {
|
||||
return activeGroup;
|
||||
}
|
||||
bool inGroup() {
|
||||
return activeGroup != nullptr;
|
||||
}
|
||||
private:
|
||||
Group* activeGroup;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user