Beispiel #1
0
    def __init__(self):
        """Initializes a Job 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._carry_limit = 0
        self._damage = 0
        self._health = 0
        self._moves = 0
        self._title = ""
Beispiel #2
0
    def __init__(self):
        """Initializes a Machine 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._ore_type = ""
        self._refine_input = 0
        self._refine_output = 0
        self._refine_time = 0
        self._tile = None
        self._worked = 0
Beispiel #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._blueium = 0
        self._blueium_ore = 0
        self._health = 0
        self._job = None
        self._moves = 0
        self._owner = None
        self._redium = 0
        self._redium_ore = 0
        self._stun_immune = 0
        self._stun_time = 0
        self._tile = None
Beispiel #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._generator_tiles = []
        self._heat = 0
        self._intern_spawn = 0
        self._lost = False
        self._manager_spawn = 0
        self._name = "Anonymous"
        self._opponent = None
        self._physicist_spawn = 0
        self._pressure = 0
        self._reason_lost = ""
        self._reason_won = ""
        self._spawn_tiles = []
        self._time_remaining = 0
        self._units = []
        self._won = False
Beispiel #5
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._blueium = 0
        self._blueium_ore = 0
        self._decoration = 0
        self._direction = ""
        self._is_wall = False
        self._machine = None
        self._owner = None
        self._redium = 0
        self._redium_ore = 0
        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