-
Notifications
You must be signed in to change notification settings - Fork 102
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
27 changed files
with
543 additions
and
33 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -69,5 +69,4 @@ public MeepleAction merge(MeepleAction ma) { | |
} | ||
return new MeepleAction(meepleType, options, origin); | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/jcloisterzone/action/ScoreAcrobatsAction.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,11 @@ | ||
package com.jcloisterzone.action; | ||
|
||
import com.jcloisterzone.board.pointer.FeaturePointer; | ||
import io.vavr.collection.Set; | ||
|
||
public class ScoreAcrobatsAction extends AbstractPlayerAction<FeaturePointer> implements SelectFeatureAction { | ||
|
||
public ScoreAcrobatsAction(Set<FeaturePointer> options) { | ||
super(options); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.jcloisterzone.feature; | ||
|
||
import com.jcloisterzone.board.Location; | ||
import com.jcloisterzone.board.Position; | ||
import com.jcloisterzone.board.Rotation; | ||
import com.jcloisterzone.board.pointer.FeaturePointer; | ||
|
||
import io.vavr.collection.List; | ||
|
||
public class Acrobats extends TileFeature implements Structure { | ||
|
||
public static final List<FeaturePointer> INITIAL_PLACE = List.of(new FeaturePointer(Position.ZERO, Acrobats.class, Location.I)); | ||
|
||
public Acrobats() { | ||
super(INITIAL_PLACE); | ||
} | ||
|
||
public Acrobats(List<FeaturePointer> places) { | ||
super(places); | ||
} | ||
|
||
@Override | ||
public Feature placeOnBoard(Position pos, Rotation rot) { | ||
return new Acrobats(placeOnBoardPlaces(pos, rot)); | ||
} | ||
|
||
public static String name() { | ||
return "Acrobats"; | ||
} | ||
} |
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,30 @@ | ||
package com.jcloisterzone.feature; | ||
|
||
import com.jcloisterzone.board.Location; | ||
import com.jcloisterzone.board.Position; | ||
import com.jcloisterzone.board.Rotation; | ||
import com.jcloisterzone.board.pointer.FeaturePointer; | ||
import io.vavr.collection.List; | ||
|
||
|
||
public class Circus extends TileFeature implements Structure { | ||
|
||
private static final List<FeaturePointer> INITIAL_PLACE = List.of(new FeaturePointer(Position.ZERO, Circus.class, Location.I)); | ||
|
||
public Circus() { | ||
this(INITIAL_PLACE); | ||
} | ||
|
||
public Circus(List<FeaturePointer> places) { | ||
super(places); | ||
} | ||
|
||
@Override | ||
public Feature placeOnBoard(Position pos, Rotation rot) { | ||
return new Circus(placeOnBoardPlaces(pos, rot)); | ||
} | ||
|
||
public static String name() { | ||
return "Circus"; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.jcloisterzone.figure; | ||
|
||
import com.jcloisterzone.Immutable; | ||
import com.jcloisterzone.Player; | ||
import com.jcloisterzone.board.pointer.FeaturePointer; | ||
import com.jcloisterzone.feature.Acrobats; | ||
import com.jcloisterzone.feature.Structure; | ||
import com.jcloisterzone.game.state.GameState; | ||
|
||
@Immutable | ||
public class Ringmaster extends SmallFollower { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public Ringmaster(String id, Player player) { | ||
super(id, player); | ||
} | ||
|
||
@Override | ||
public DeploymentCheckResult isDeploymentAllowed(GameState state, FeaturePointer fp, Structure feature) { | ||
if (feature instanceof Acrobats) { | ||
return new DeploymentCheckResult("Cannot place ringmaster on the acrobats space."); | ||
} | ||
return super.isDeploymentAllowed(state, fp, feature); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/jcloisterzone/figure/neutral/BigTop.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,14 @@ | ||
package com.jcloisterzone.figure.neutral; | ||
|
||
import com.jcloisterzone.Immutable; | ||
import com.jcloisterzone.board.Position; | ||
|
||
@Immutable | ||
public class BigTop extends NeutralFigure<Position> { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public BigTop(String id) { | ||
super(id); | ||
} | ||
} |
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
Oops, something went wrong.