src/ru/bosony/icfpc/cells/Cell.java
changeset 1 f83e1e778061
parent 0 80446fa5641a
     1.1 --- a/src/ru/bosony/icfpc/cells/Cell.java	Fri Jul 13 18:13:05 2012 +0400
     1.2 +++ b/src/ru/bosony/icfpc/cells/Cell.java	Fri Jul 13 18:45:38 2012 +0400
     1.3 @@ -1,32 +1,24 @@
     1.4  package ru.bosony.icfpc.cells;
     1.5  
     1.6 -public class Cell
     1.7 +public enum  Cell
     1.8  {
     1.9 +	ROBOT('R'),
    1.10 +	ROCK('*'),
    1.11 +	EAGHT('.'),
    1.12 +	WALL('#'),
    1.13 +	LAMBDA('\\'),
    1.14 +	CLOSED_LAMBDA_LIFT('L'),
    1.15 +	OPEN_LAMBDA_LIFT('O'),
    1.16 +	EMPTY(' '),
    1.17 +	EARTH('.');
    1.18  	
    1.19 -	private CellTypes type;
    1.20  	private char ASCII;
    1.21  	
    1.22 -	public Cell(CellTypes type, char ASCII)
    1.23 +	private Cell(char ASCII)
    1.24  	{
    1.25 -		this.type = type;
    1.26  		this.ASCII = ASCII;
    1.27  	}
    1.28  	
    1.29 -	public Cell(Cell cell)
    1.30 -	{
    1.31 -		this.type = cell.type;
    1.32 -		this.ASCII = cell.ASCII;
    1.33 -	}
    1.34 -	
    1.35 -	public CellTypes getType()
    1.36 -	{
    1.37 -		return type;
    1.38 -	}
    1.39 -	public void setType(CellTypes type)
    1.40 -	{
    1.41 -		this.type = type;
    1.42 -	}
    1.43 -	
    1.44  	public char getASCII()
    1.45  	{
    1.46  		return ASCII;