blob: ead72a6acf8ba9ce4b043e0c8a4e735366f19394 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from .entity import Entity, EntityType
from kennel.engine.components.position import Position
from kennel.engine.components.controllable import Controllable
class Laser(Entity):
def __init__(self, id: str, controllable_by: str):
components = [
Position(0, 0),
Controllable(controllable_by),
]
super().__init__(EntityType.LASER, id, components)
|