2022-07-21 16:07:13 -05:00
|
|
|
from boundedturtle import BoundedTurtle
|
|
|
|
import random
|
|
|
|
|
2022-07-21 16:36:45 -05:00
|
|
|
|
2022-07-21 16:07:13 -05:00
|
|
|
class Drone(BoundedTurtle):
|
2022-07-21 16:36:45 -05:00
|
|
|
droneList = [] # static variable
|
2022-07-21 16:07:13 -05:00
|
|
|
|
2022-07-21 16:36:45 -05:00
|
|
|
def __init__(self, speed, x_min, x_max, y_min, y_max):
|
|
|
|
pass
|
2022-07-21 16:07:13 -05:00
|
|
|
|
|
|
|
@staticmethod
|
2022-07-21 16:36:45 -05:00
|
|
|
def get_drones():
|
2022-07-21 16:07:13 -05:00
|
|
|
return [x for x in Drone.droneList if x.__alive]
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def destory_all():
|
|
|
|
for drone in Drone.droneList:
|
|
|
|
drone.remove()
|
|
|
|
Drone.droneList = []
|
|
|
|
|
|
|
|
def move(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
@property
|
|
|
|
def alive(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def remove(self):
|
2022-07-21 16:36:45 -05:00
|
|
|
pass
|