docu: dokumentiere die Bauteile
This commit is contained in:
+32
-4
@@ -8,13 +8,19 @@ class ComponentStore(object):
|
|||||||
self.__components_reader = ComponentReader()
|
self.__components_reader = ComponentReader()
|
||||||
self.__tonnage = tonnage
|
self.__tonnage = tonnage
|
||||||
self.__reactor_value = int(movement_rate * tonnage)
|
self.__reactor_value = int(movement_rate * tonnage)
|
||||||
|
'''
|
||||||
|
Erstellt den erforderlichen Reaktor
|
||||||
|
'''
|
||||||
def get_reaktor(self) -> Reaktor:
|
def get_reaktor(self) -> Reaktor:
|
||||||
return Reaktor(self.__reactor_value, self.__components_reader.reactor_tonnage_from(self.__reactor_value))
|
return Reaktor(self.__reactor_value, self.__components_reader.reactor_tonnage_from(self.__reactor_value))
|
||||||
|
'''
|
||||||
|
Erstellt den Bewegungs-Aparat
|
||||||
|
'''
|
||||||
def get_gyroskope(self) -> Gyroskope:
|
def get_gyroskope(self) -> Gyroskope:
|
||||||
return Gyroskope(float(round(self.__reactor_value / 100)))
|
return Gyroskope(float(round(self.__reactor_value / 100)))
|
||||||
|
'''
|
||||||
|
Erstellt die innere Struktur
|
||||||
|
'''
|
||||||
def get_inner_structure(self) -> InnerStructure:
|
def get_inner_structure(self) -> InnerStructure:
|
||||||
gyroscope = self.get_gyroskope()
|
gyroscope = self.get_gyroskope()
|
||||||
return InnerStructure(self.__components_reader.inner_structure_from(self.__tonnage), gyroscope)
|
return InnerStructure(self.__components_reader.inner_structure_from(self.__tonnage), gyroscope)
|
||||||
@@ -25,19 +31,41 @@ class ItemStore(object):
|
|||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
'''
|
||||||
|
Erstellt das Cockpit
|
||||||
|
'''
|
||||||
def get_cockpit(self) -> Cockpit:
|
def get_cockpit(self) -> Cockpit:
|
||||||
return Cockpit()
|
return Cockpit()
|
||||||
|
|
||||||
|
'''
|
||||||
|
Erstellt die Lebenserhaltung
|
||||||
|
'''
|
||||||
def get_sustainment(self) -> Sustainment:
|
def get_sustainment(self) -> Sustainment:
|
||||||
return Sustainment()
|
return Sustainment()
|
||||||
|
|
||||||
|
'''
|
||||||
|
Erstellt die Sensoren
|
||||||
|
'''
|
||||||
def get_sensors(self) -> Sensors:
|
def get_sensors(self) -> Sensors:
|
||||||
return Sensors()
|
return Sensors()
|
||||||
|
|
||||||
|
'''
|
||||||
|
Erstellt die Gelenke
|
||||||
|
* Hüftgelenk
|
||||||
|
* Schultergelenk
|
||||||
|
'''
|
||||||
def get_joint(self) -> Joint:
|
def get_joint(self) -> Joint:
|
||||||
return Joint()
|
return Joint()
|
||||||
|
|
||||||
|
'''
|
||||||
|
Erstellt die Aktivatoren
|
||||||
|
* Oberschenkel-Aktivator
|
||||||
|
* Unterschenkel-Aktivator
|
||||||
|
* Fuß-Aktivator
|
||||||
|
* Oberarm-Aktivator
|
||||||
|
* Unterarm-Aktivator
|
||||||
|
* Hand-Aktivator
|
||||||
|
'''
|
||||||
def get_activator(self) -> Activator:
|
def get_activator(self) -> Activator:
|
||||||
return Activator()
|
return Activator()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user