This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
L3GestionParking/src/c/Teleporteur.py

22 lines
493 B
Python

from src.m.Parking import Placement
__author__ = 'sidya'
class Teleporteur:
@staticmethod
def teleporterVoiture(voiture, place):
p = Placement(None,voiture, place)
place.prendre()
return p.id
@staticmethod
def teleporterVoitureSuperAbonne(voiture, parking):
place = parking.addPlaceSuperAbo()
p = Placement(None, voiture, place)
return p.id
@staticmethod
def teleporterVersSortie(placement):
placement.end()