예제 #1
0
    def __init__(self):
        """Initializes a Port with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._gold = 0
        self._investment = 0
        self._owner = None
        self._tile = None
예제 #2
0
    def __init__(self):
        """Initializes a Tile with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._decoration = False
        self._gold = 0
        self._port = None
        self._tile_east = None
        self._tile_north = None
        self._tile_south = None
        self._tile_west = None
        self._type = ""
        self._unit = None
        self._x = 0
        self._y = 0
예제 #3
0
    def __init__(self):
        """Initializes a Unit with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._acted = False
        self._crew = 0
        self._crew_health = 0
        self._gold = 0
        self._moves = 0
        self._owner = None
        self._path = []
        self._ship_health = 0
        self._stun_turns = 0
        self._target_port = None
        self._tile = None
예제 #4
0
    def __init__(self):
        """Initializes a Player with basic logic as provided by the Creer code generator."""
        GameObject.__init__(self)

        # private attributes to hold the properties so they appear read only
        self._client_type = ""
        self._gold = 0
        self._infamy = 0
        self._lost = False
        self._name = "Anonymous"
        self._opponent = None
        self._port = None
        self._reason_lost = ""
        self._reason_won = ""
        self._time_remaining = 0
        self._units = []
        self._won = False