Skip to content

Commit

Permalink
added toString for ReplayAction
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Mar 20, 2015
1 parent 54292fd commit 8775d6f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.stream.Collectors;

import com.cardshifter.modapi.actions.ActionPerformEvent;
import com.fasterxml.jackson.annotation.JsonCreator;

public class ReplayAction {

Expand All @@ -14,7 +13,6 @@ public class ReplayAction {
private final int performer;
private final String actionName;

@JsonCreator
ReplayAction() {
this.entity = 0;
this.targets = null;
Expand Down Expand Up @@ -48,7 +46,12 @@ public List<List<Integer>> getTargets() {
return Collections.unmodifiableList(targets);
}

public static ReplayAction forAction(ActionPerformEvent event) {
@Override
public String toString() {
return actionName + " on " + entity + " by " + performer + " with targets " + targets;
}

public static ReplayAction forAction(ActionPerformEvent event) {
ReplayAction act = new ReplayAction(event);
return act;
}
Expand Down

0 comments on commit 8775d6f

Please sign in to comment.