Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.Serializable;
- import java.util.ArrayList;
- public class Move implements Serializable {
- private static final long serialVersionUID = -5285428449211642355L;
- private ArrayList<Integer> moves;
- private String name;
- public Move(String name) {
- this.name = name;
- moves = new ArrayList<Integer>();
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Move(String name, int [] moves) {
- this(name);
- for (int m : moves) {
- this.moves.add(m);
- }
- }
- public ArrayList<Integer> getMoves() {
- return moves;
- }
- public void setMoves(ArrayList<Integer> moves) {
- this.moves = moves;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement