houdini/Houdini/Penguin.py

62 lines
1.3 KiB
Python
Raw Normal View History

2019-03-01 19:41:40 +00:00
from Houdini.Spheniscidae import Spheniscidae
class Penguin(Spheniscidae):
__slots__ = ['x', 'y', 'room', 'waddle', 'table', 'data', 'member',
'membership_days', 'avatar', 'walking_puffle']
2019-03-01 19:41:40 +00:00
def __init__(self, *args):
super().__init__(*args)
self.x, self.y = (0, 0)
self.room = None
self.waddle = None
self.table = None
self.data = None
self.member = None
self.membership_days = 0
self.avatar = None
self.walking_puffle = None
2019-03-01 19:41:40 +00:00
self.logger.debug('New penguin created')
@property
def party_state(self):
return str()
@property
def puffle_state(self):
return str()
@property
def penguin_state(self):
return str()
2019-03-01 19:41:40 +00:00
async def add_inventory(self, item):
pass
async def add_igloo(self, igloo):
pass
async def add_furniture(self, furniture):
pass
async def add_flooring(self, flooring):
pass
async def add_buddy(self, buddy):
pass
async def add_inbox(self, postcard):
pass
2019-04-10 23:56:27 +00:00
def __repr__(self):
if self.data is not None:
return '<Penguin ID=\'{}\' Username=\'{}\'>'.format(self.data.ID, self.data.Username)
return super().__repr__()