// Creates an empty tile, sets its location, adds a box collider public void Initialize(GameBoard gameBoard, float xLocation, float yLocation, float zLocation) { SetLocation(xLocation, yLocation, zLocation); this.gameBoard = gameBoard; this.gameObject.AddComponent(typeof(BoxCollider)); graphicRenderer = GetComponent <Renderer>(); observers.Add(gameBoard); states = new TileStatesFactory(this); currentState = states.tileIdle; }
public TileAwaitingMove(EmptyTile tile, TileStatesFactory stateGenerator) { this.tile = tile; states = stateGenerator; }
public TileIdle(Tileable tile, TileStatesFactory stateGenerator) { this.tile = tile; states = stateGenerator; }
public CursorOnHighlightedTile(Tileable tile, TileStatesFactory stateGenerator) { this.tile = tile; states = stateGenerator; }
public TileHighlighted(Tileable tile, TileStatesFactory stateGenerator) { this.tile = tile; states = stateGenerator; }