


#name,class,color,position,price_buy,price_build,rent,rent_build_1,rent_build_2,rent_build_3,rent_build_4,rent_build_5,monopoly_size
#Mediterranean Avenue,Street,Brown,1,60,50,2,10,30,90,160,250,2

class Tile():

    def __init__(self,name="",
            tile_class="",
            color="",
            position=0,
            price_buy=0,
            price_build=0,
            rent=0,
            rent_build_1=0,
            rent_build_2=0,
            rent_build_3=0,
            rent_build_4=0,
            rent_build_5=0,
            monopoly_size=0,
            owner=None):
        self.name = name
        self.tile_class = tile_class
        self.color = color
        self.position = position
        self.price_buy = price_buy
        self.price_build = price_build
        self.rent = rent
        self.rent_build_1 = rent_build_1
        self.rent_build_2 = rent_build_2
        self.rent_build_3 = rent_build_3
        self.rent_build_4 = rent_build_4
        self.rent_build_5 = rent_build_5
        self.monopoly_size = monopoly_size
        self.owner = owner


    def tile_attrib(self):
    	return {"name": self.name, "tile_class": self.tile_class, "color": self.color, "position": self.position,
    			 "price_buy": self.price_buy,  "price_build": self.price_build, "rent": self.rent, "rent_build_1": self.rent_build_1, 
    			 "rent_build_2": self.rent_build_2, "rent_build_3": self.rent_build_3, "rent_build_4": self.rent_build_4, 
    			 "rent_build_5": self.rent_build_5, "monopoly_size": self.monopoly_size, "owner": self.owner}



    def __str__(self):
    	return "name: {}, tile_class: {}, color: {}, position: {}, price_buy: {}  price_build: {}, rent: {}, rent_build_1: {}, rent_build_2: {},rent_build_3: {}, rent_build_4: {}, rent_build_5: {}, monopoly_size: {}, owner: {}".format(self.name,self.tile_class,self.color,self.position,self.price_buy,self.price_build,self.rent,self.rent_build_1,
    		self.rent_build_2,self.rent_build_3,self.rent_build_4,self.rent_build_5,self.monopoly_size,self.owner )

    def __repr__(self):
    	return {"name": self.name, "tile_class": self.tile_class, "color": self.color, "position": self.position,
    			 "price_buy": self.price_buy,  "price_build": self.price_build, "rent": self.rent, "rent_build_1": self.rent_build_1, 
    			 "rent_build_2": self.rent_build_2, "rent_build_3": self.rent_build_3, "rent_build_4": self.rent_build_4, 
    			 "rent_build_5": self.rent_build_5, "monopoly_size": self.monopoly_size, "owner": self.owner}


    

    def assign_owner(self, Player):
        self.owner = Player
    
    