from simulator.position import Position
from simulator.vehicle.vehicle import Vehicle


class Obstacle(Vehicle):
    def __init__(self, position: Position, length: int, width: int):
        super().__init__(position=position, length=length, width=width, velocity=0)

    def beforeMove(self) -> Position:
        return self.position

    def move(self) -> Position:
        return self.position

def isObstacle(vehicle: Vehicle) -> bool:
    return isinstance(vehicle, Obstacle)