generated from Game-as-a-Service/Gaas-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add EffectEvent for EightDiagramTactic
- Loading branch information
1 parent
d8b2ee3
commit c125ea7
Showing
16 changed files
with
378 additions
and
9 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
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
13 changes: 13 additions & 0 deletions
13
...ndsOfTheThreeKingdoms/domain/src/main/java/com/gaas/threeKingdoms/events/EffectEvent.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,13 @@ | ||
package com.gaas.threeKingdoms.events; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class EffectEvent extends DomainEvent { | ||
private final boolean isSuccess; | ||
public EffectEvent(String name, String message, boolean isSuccess) { | ||
super(name, message); | ||
this.isSuccess = isSuccess; | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
...oms/domain/src/main/java/com/gaas/threeKingdoms/events/EightDiagramTacticEffectEvent.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.gaas.threeKingdoms.events; | ||
|
||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public class EightDiagramTacticEffectEvent extends EffectEvent { | ||
private final String drawCardId; | ||
|
||
public EightDiagramTacticEffectEvent(String message, String drawCardId, boolean isSuccess) { | ||
super("EightDiagramTacticEffectEvent", message, isSuccess); | ||
this.drawCardId = drawCardId; | ||
} | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...oms/domain/src/main/java/com/gaas/threeKingdoms/handcard/equipmentcard/EquipmentCard.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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
package com.gaas.threeKingdoms.handcard.equipmentcard; | ||
|
||
import com.gaas.threeKingdoms.Game; | ||
import com.gaas.threeKingdoms.events.DomainEvent; | ||
import com.gaas.threeKingdoms.events.EffectEvent; | ||
import com.gaas.threeKingdoms.handcard.HandCard; | ||
import com.gaas.threeKingdoms.handcard.PlayCard; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
public abstract class EquipmentCard extends HandCard { | ||
protected boolean hasSpecialEffect = false; | ||
|
||
public EquipmentCard(PlayCard playCard) { | ||
super(playCard); | ||
} | ||
|
||
public abstract List<DomainEvent> equipmentEffect(Game game); | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...a/com/gaas/threeKingdoms/handcard/equipmentcard/armorcard/RepeatingCrossbowArmorCard.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 |
---|---|---|
@@ -1,12 +1,22 @@ | ||
package com.gaas.threeKingdoms.handcard.equipmentcard.armorcard; | ||
|
||
import com.gaas.threeKingdoms.Game; | ||
import com.gaas.threeKingdoms.events.DomainEvent; | ||
import com.gaas.threeKingdoms.handcard.PlayCard; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 諸葛連弩 | ||
* */ | ||
public class RepeatingCrossbowArmorCard extends ArmorCard { | ||
public RepeatingCrossbowArmorCard(PlayCard playCard) { | ||
super(playCard); | ||
} | ||
|
||
@Override | ||
public List<DomainEvent> equipmentEffect(Game game) { | ||
return null; | ||
} | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
...c/main/java/com/gaas/threeKingdoms/handcard/equipmentcard/mountscard/MinusMountsCard.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
10 changes: 10 additions & 0 deletions
10
...rc/main/java/com/gaas/threeKingdoms/handcard/equipmentcard/mountscard/PlusMountsCard.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
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.