import pygame as pg
from colors import Color

color = Color()

class Tile:
	def __init__(self):
		(self.width, self.height) = (25, 25)
		self.x = 0
		self.y = 0
		self.color = color.WHITE
		self.filled = False
		self.constr = False

	def draw(self, surface):
		pg.draw.rect(surface, self.color, pg.Rect(self.x, self.y, self.width, self.height))

	def hovered(self, pos_x, pos_y):
		if pos_x >= self.x and pos_x <= self.x + self.width and pos_y >= self.y and pos_y <= self.y + self.width:
			return True
		return False 