public PlayerModel(SquareModel initialSquare, MasterOccupiedRange masterOccupiedRange) : base(initialSquare, masterOccupiedRange) { MoveCount = new IntReactiveProperty(-1); }
public override void MoveTo(SquareModel square) { base.MoveTo(square); MoveCount.Value++; }
protected PieceModelBase(SquareModel initialSquare, MasterOccupiedRange masterOccupiedRange) { CurrentSquare = new ReactiveProperty <SquareModel>(initialSquare); this.masterOccupiedRange = masterOccupiedRange; }
public virtual void MoveTo(SquareModel square) { CurrentSquare.Value = square; }
private void Rotate(SquareModel delta) { CurrentRotation.Value = CurrentRotation.Value.Rotate(delta); }
private void Move(SquareModel delta) { delta = delta.Rotate(CurrentRotation.Value); CurrentSquare.Value += delta; }
public EnemyModel(MasterEnemy masterEnemy, SquareModel initialSquare, SquareModel initialRotation) : base(initialSquare, masterEnemy.occupiedRange) { this.masterEnemy = masterEnemy; CurrentRotation = new ReactiveProperty <SquareModel>(initialRotation); }
public bool IsGoal(SquareModel squareModel) { return(squareModel == goalSquare); }
public BoardMedel(SquareModel boardSize, SquareModel goalSquare) : this(boardSize.X, boardSize.Y) { this.goalSquare = goalSquare; }