Пример #1
0
 private TapPlayerController(
     TapGesture tapGesture,
     PlayerTurnSignal playerTurnSignal,
     IPositionScreenPointMapper positionScreenPointMapper,
     WaitForPlayerTurnSignal waitForPlayerTurnSignal,
     Field field,
     MoveTurnAction.PositionFactory moveTurnActionFactory)
 {
     this.tapGesture                = tapGesture;
     this.playerTurnSignal          = playerTurnSignal;
     this.positionScreenPointMapper = positionScreenPointMapper;
     this.waitForPlayerTurnSignal   = waitForPlayerTurnSignal;
     this.field = field;
     this.moveTurnActionFactory = moveTurnActionFactory;
 }
Пример #2
0
 private EnemyController(
     Field field,
     WaitForEnemyTurnSignal waitForEnemyTurnSignal,
     EnemyTurnSignal enemyTurnSignal,
     AttackTurnAction.Factory attackTurnActionFactory,
     MoveTurnAction.PositionFactory moveTurnActionFactory,
     IAttackPossibility attackPossibility,
     IEnemyMovePositionPicker enemyMovePositionPicker)
 {
     this.field = field;
     this.waitForEnemyTurnSignal  = waitForEnemyTurnSignal;
     this.enemyTurnSignal         = enemyTurnSignal;
     this.attackTurnActionFactory = attackTurnActionFactory;
     this.moveTurnActionFactory   = moveTurnActionFactory;
     this.attackPossibility       = attackPossibility;
     this.enemyMovePositionPicker = enemyMovePositionPicker;
 }
Пример #3
0
//		private float flickError;

        private FlickPlayerController(
            [Inject(Id = "Vertical")] FlickGesture verticalFlickGesture,
            [Inject(Id = "Horizontal")] FlickGesture horizontalFlickGesture,
            PlayerTurnSignal playerTurnSignal,
            WaitForPlayerTurnSignal waitForPlayerTurnSignal,
            Field field,
            MoveTurnAction.PositionFactory moveTurnActionFactory)
        {
            this.verticalFlickGesture    = verticalFlickGesture;
            this.horizontalFlickGesture  = horizontalFlickGesture;
            this.playerTurnSignal        = playerTurnSignal;
            this.waitForPlayerTurnSignal = waitForPlayerTurnSignal;
            this.moveTurnActionFactory   = moveTurnActionFactory;
            this.player = field.Player;
            this.field  = field;
//			this.flickError = flickError;
        }