package ca.geepsy.lab.marsbot.env.gui.map;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Shape;

/**
 * Represents a square on the map.
 * @author sylvainpascal
 */
public class MapElement {

	private Integer xPosition;
	private Integer yPosition;
	
	private Shape elementShape;
	
	public MapElement(){
		
	}

	public Integer getXPosition() {
		return xPosition;
	}

	public void setXPosition(Integer position) {
		xPosition = position;
	}

	public Integer getYPosition() {
		return yPosition;
	}

	public void setYPosition(Integer position) {
		yPosition = position;
	}

	public void render(Graphics graphics) {
		Graphics2D g2 = (Graphics2D) graphics;
		Color c = g2.getColor();
		g2.setColor(Color.ORANGE);
		g2.fillRoundRect(xPosition, yPosition, 50, 50, 10, 10);
		g2.setColor(c);
	}
}
