src/ru/bosony/icfpc/cells/Cell.java
changeset 1 f83e1e778061
parent 0 80446fa5641a
equal deleted inserted replaced
0:80446fa5641a 1:f83e1e778061
     1 package ru.bosony.icfpc.cells;
     1 package ru.bosony.icfpc.cells;
     2 
     2 
     3 public class Cell
     3 public enum  Cell
     4 {
     4 {
       
     5 	ROBOT('R'),
       
     6 	ROCK('*'),
       
     7 	EAGHT('.'),
       
     8 	WALL('#'),
       
     9 	LAMBDA('\\'),
       
    10 	CLOSED_LAMBDA_LIFT('L'),
       
    11 	OPEN_LAMBDA_LIFT('O'),
       
    12 	EMPTY(' '),
       
    13 	EARTH('.');
     5 	
    14 	
     6 	private CellTypes type;
       
     7 	private char ASCII;
    15 	private char ASCII;
     8 	
    16 	
     9 	public Cell(CellTypes type, char ASCII)
    17 	private Cell(char ASCII)
    10 	{
    18 	{
    11 		this.type = type;
       
    12 		this.ASCII = ASCII;
    19 		this.ASCII = ASCII;
    13 	}
       
    14 	
       
    15 	public Cell(Cell cell)
       
    16 	{
       
    17 		this.type = cell.type;
       
    18 		this.ASCII = cell.ASCII;
       
    19 	}
       
    20 	
       
    21 	public CellTypes getType()
       
    22 	{
       
    23 		return type;
       
    24 	}
       
    25 	public void setType(CellTypes type)
       
    26 	{
       
    27 		this.type = type;
       
    28 	}
    20 	}
    29 	
    21 	
    30 	public char getASCII()
    22 	public char getASCII()
    31 	{
    23 	{
    32 		return ASCII;
    24 		return ASCII;