space-game-proto/obj/planet.py

14 lines
333 B
Python
Raw Normal View History

2021-05-11 10:34:56 -04:00
from .tradeHub import TradeHub
class Planet:
'Contains trade hub'
def __init__(self, name):
self.name = name
self.tradeHub = TradeHub
def addTradeHub(self, tradeHub):
self.tradeHub = tradeHub
def getTradeHub(self):
return self.tradeHub
def getName(self):
return self.name