public Tile(TileType type, Vector2 position, Vector2 size, int player, int x, int y) { this.position = position; this.size = size; this.type = type; this.player = player; this.x = x; this.y = y; seen = false; duck = null; InitialisePhysics(); }
public void Duck(Duck duck) { seenTiles.Add(this); this.duck = duck; }
private void NextDuck() { player++; ducks[player] = new Duck(player, map.GetStartPosition(player).position, map); ducks[player].visible = true; Duck.currentDuck = ducks[player]; }
private bool CollideWithDuck(Duck duck) { if (state == State.Playing) { sawAnotherDuck = true; } return false; }
protected void NewGame() { player = -1; if (ducks == null) ducks = new Duck[16]; for (int i = 0; i < 16; i++) { Duck d = ducks[i]; if (d == null) { if (i < map.NumberOfStartPositions) { d = new Duck(i, map.GetStartPosition(i).position, map); d.Reset(); } } else { d.NewGameReset(map.GetStartPosition(i).position, map); } } NextDuck(); ChangeState(State.Playing); camera.Reset(); map.Reset(); }