-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
115 additions
and
226 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
src/main/java/com/jcloisterzone/action/MoveBlackDragonAction.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/com/jcloisterzone/game/capability/BlackDragonCapabilityModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.jcloisterzone.game.capability; | ||
|
||
import com.jcloisterzone.board.Position; | ||
import io.vavr.collection.Vector; | ||
|
||
public class BlackDragonCapabilityModel { | ||
|
||
private final Vector<Position> visited; | ||
private final int moves; | ||
|
||
public BlackDragonCapabilityModel(Vector<Position> visited, int moves) { | ||
this.visited = visited; | ||
this.moves = moves; | ||
} | ||
|
||
public Vector<Position> getVisited() { | ||
return visited; | ||
} | ||
|
||
public BlackDragonCapabilityModel setVisited(Vector<Position> visited) { | ||
return new BlackDragonCapabilityModel(visited, moves); | ||
} | ||
|
||
public int getMoves() { | ||
return moves; | ||
} | ||
|
||
public BlackDragonCapabilityModel setMoves(int moves) { | ||
return new BlackDragonCapabilityModel(visited, moves); | ||
} | ||
} |
Oops, something went wrong.