Exemple #1
0
    def __init__(self):
        """Initializes a Bottle 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._direction = ""
        self._drunk_direction = ""
        self._is_destroyed = False
        self._tile = None
    def __init__(self):
        """Initializes a YoungGun 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._call_in_tile = None
        self._can_call_in = False
        self._owner = None
        self._tile = None
Exemple #3
0
    def __init__(self):
        """Initializes a Furnishing 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._health = 0
        self._is_destroyed = False
        self._is_piano = False
        self._is_playing = False
        self._tile = None
Exemple #4
0
    def __init__(self):
        """Initializes a Cowboy 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._can_move = False
        self._drunk_direction = ""
        self._focus = 0
        self._health = 0
        self._is_dead = False
        self._is_drunk = False
        self._job = ""
        self._owner = None
        self._tile = None
        self._tolerance = 0
        self._turns_busy = 0
Exemple #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._bottle = None
        self._cowboy = None
        self._furnishing = None
        self._has_hazard = False
        self._is_balcony = False
        self._tile_east = None
        self._tile_north = None
        self._tile_south = None
        self._tile_west = None
        self._x = 0
        self._y = 0
        self._young_gun = None
Exemple #6
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._cowboys = []
        self._kills = 0
        self._lost = False
        self._name = "Anonymous"
        self._opponent = None
        self._reason_lost = ""
        self._reason_won = ""
        self._rowdiness = 0
        self._score = 0
        self._siesta = 0
        self._time_remaining = 0
        self._won = False
        self._young_gun = None