Exemple #1
0
 def _label_text(self, entity: Entity) -> str:
     label = entity.name
     if entity.broken:
         label += ' [BROKEN]'
     label += '\nFuel: ' + common.format_num(entity.fuel, " kg")
     if entity.landed_on == AYSE:
         label += '\nDocked'
     elif entity.landed():
         label += '\nLanded'
     return label
Exemple #2
0
 def _label_text(self, entity: Entity, state: PhysicsState) -> str:
     label = super()._label_text(entity, state)
     if entity.broken:
         label += ' [BROKEN]'
     label += '\nFuel: ' + common.format_num(entity.fuel, " kg")
     if entity.landed_on == common.AYSE:
         label += '\nDocked'
     elif entity.landed():
         label += '\nLanded'
     return label
Exemple #3
0
 def _label_text(self, entity: Entity, state: PhysicsState) -> str:
     label = super()._label_text(entity, state)
     label += '\nFuel: ' + common.format_num(entity.fuel, " kg")
     if entity.landed():
         label += '\nLanded'
     return label
Exemple #4
0
 def _label_text(self, entity: Entity) -> str:
     return (
             f'{entity.name}\n'
             f'Fuel: {common.format_num(entity.fuel, " kg")}' +
             ('\nLanded' if entity.landed() else '')
     )