package com.derniereligne.engine.cards.trumps;

import com.derniereligne.engine.Player;

/**
 * This kind of trump card modify the number of moves (plus or minus) a player can make in a turn.
 *
 * @author "Dernière Ligne" first development team
 * @version 1.0
 */
public class ModifyNumberOfMovesInATurnTrump extends Trump{
    private final int turnsToAdd;

    public ModifyNumberOfMovesInATurnTrump(String name, int duration, String description,
            int cost, int turnsToAdd) {
        super(name, duration, description, cost);
        this.turnsToAdd = turnsToAdd;
    }

    @Override
    public void affect(Player player) {
        if (player != null && duration > 0) {
            player.addToNumberMoveToPlay(turnsToAdd);
        }
    }
}

@@ -341,26 +341,28 @@
 nal int 
-turnsToAdd
+deltaOfMoves
 ;%0A%0A    p
@@ -472,26 +472,28 @@
 st, int 
-turnsToAdd
+deltaOfMoves
 ) %7B%0A    
@@ -555,31 +555,35 @@
 his.
-turnsToAdd = turnsToAdd
+deltaOfMoves = deltaOfMoves
 ;%0A  
@@ -732,18 +732,20 @@
 lay(
-turnsToAdd
+deltaOfMoves
 );%0A 

rename an attributes to match its function