/**
 * 
 */
package tileworld.environment;

import java.awt.Color;
import sim.portrayal.Portrayal;
import sim.portrayal.simple.RectanglePortrayal2D;
import sim.util.Int2D;

/**
 * TWTile
 *
 * @author michaellees
 * Created: Apr 15, 2010
 *
 * Copyright michaellees 2010
 *
 *
 * Description:
 *
 * Tiles in Tileworld.
 */
public class TWTile extends TWObject{

	/**
	 * @param creationTime
	 * @param deathTime
	 */
	public TWTile(int x, int y, TWEnvironment env, double creationTime, double deathTime) {
		super(x,y,env,creationTime, deathTime);

	}
        public TWTile(Int2D pos, TWEnvironment env, double creationTime, double deathTime) {
		super(pos,env,creationTime, deathTime);

	}

         public TWTile(Int2D pos, TWEnvironment env, Double creationTime, Double deathTime) {
		super(pos,env,creationTime, deathTime);

	}


        public TWTile() {}
        
         public static Portrayal getPortrayal(){
        //green filled box.
        return new RectanglePortrayal2D(new Color(0.0f,1.0f,0.0f), true);
    }
         
         public static Portrayal getMemoryPortrayal(){
        //green filled box.
        return new RectanglePortrayal2D(new Color(0.0f,1.0f,0.0f), false);
    }

}
