blob: bc08a43f0fba86d809d1ea0609186598516b78a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import fuel
class Engine():
def __init__(self, name: str, isp: int, max_flow_rate: int):
self.name = name
self.max_flow_rate = max_flow_rate
self.isp = isp
def thrust(self, throttle: int):
return self.flow_rate(throttle) * self.isp
def flow_rate(self, throttle: int):
return self.max_flow_rate * (throttle / 100)
|