2021-03-03 03:09:18 -05:00
|
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
class Character:
|
2021-07-03 14:17:51 -04:00
|
|
|
"""Infos needed about a Smash character"""
|
2021-03-03 03:09:18 -05:00
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
name,
|
2021-07-03 14:17:51 -04:00
|
|
|
codenames,
|
2021-03-03 03:09:18 -05:00
|
|
|
smashggid = None,
|
|
|
|
res_urls = {},
|
|
|
|
):
|
|
|
|
self.res_urls = res_urls
|
|
|
|
self.smashggid = smashggid
|
|
|
|
self.name = name
|
2021-07-03 14:17:51 -04:00
|
|
|
self.codenames = codenames
|
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return self.name
|
2021-03-03 03:09:18 -05:00
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
class Game:
|
|
|
|
def __init__(
|
|
|
|
self,
|
|
|
|
name,
|
|
|
|
fullname,
|
|
|
|
aliases,
|
|
|
|
smashggid = None,
|
|
|
|
):
|
|
|
|
|
|
|
|
self.name = name
|
|
|
|
self.fullname = fullname
|
|
|
|
self.aliases = aliases
|
|
|
|
self.smashggid = smashggid
|
|
|
|
|
|
|
|
def list_names(self):
|
|
|
|
return [self.name] + [self.fullname] + self.aliases
|
2021-07-03 14:17:51 -04:00
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return self.name
|