Ejemplo n.º 1
0
 public PlayerAction UpdateWith(PlayerAction action)
 {
     this.makePasse = action.makePasse;
     this.posPasse = action.posPasse;
     this.pointDep = action.pointDep;
     this.pointPasse = action.pointPasse;
     this.copyBtnValues(action.btnValues);
     return this;
 }
Ejemplo n.º 2
0
 private void initializeActions(List<Player> players)
 {
     int i = 1;
     foreach (Player player in players)
     {
         int idAction = this.id * 1000 + i;
         PlayerAction pAction = new PlayerAction(idAction, Vector3.zero, new List<string>());
         actions[player] = pAction;
     }
 }
Ejemplo n.º 3
0
        public override bool passe(ref Vector3 pointPasse)
        {
            Debug.Log("In PC:" + Player.Name + " - point:" + arrivalPoint);
            pointPasse = arrivalPointPasse;
            if (phaseAnimation && Vector3.Distance(arrivalPointPasse, transform.position) < player.ZonePasse * 5)
            {

                PlayerAction action = new PlayerAction(0, this.PointDeplacement, this.arrivalPointPasse, this.Player.Button_Values, transform.position);
                this.replayController.setPlayerAction(this.Player, action);
                return true;
            }
            return false;
        }
Ejemplo n.º 4
0
        private void setMyParam(PlayerAction action)
        {
            this.PointDeplacement = action.Deplacement;
            this.Player.Button_Values = action.ButtonValues;

            if (action.MakePasse)
            {
                this.makePass = true;
                this.PointPasse = action.Passe;
                this.posPass = action.PosPasse;
            }
            else
                this.makePass = false;
        }
Ejemplo n.º 5
0
 public void setPlayerAction(Player player, PlayerAction action)
 {
     actions[player] = actions[player].UpdateWith(action);
 }
Ejemplo n.º 6
0
 public void setPlayerAction(Player player, PlayerAction action)
 {
     this.actualRound.setPlayerAction(player, action);
 }
 // -- En développement
 private void GetMyParam(PlayerAction action)
 {
     this.PointDeplacement = action.Deplacement;
     this.PointPasse = action.Passe;
     this.Player.Button_Values = action.ButtonValues;
     start_Anim(false);
 }
Ejemplo n.º 8
0
 public override void OnStartAnimation()
 {
     PlayerAction action = new PlayerAction(0, this.PointDeplacement, this.Player.Button_Values);
     this.replayController.setPlayerAction(this.Player, action);
     base.OnStartAnimation();
 }