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