public abstract class GameTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ComponentRetriever<ActionComponent> |
actions |
protected ComponentRetriever<CardComponent> |
card |
protected ComponentRetriever<CreatureTypeComponent> |
ctype |
protected ComponentRetriever<DeckComponent> |
deck |
protected ComponentRetriever<BattlefieldComponent> |
field |
protected ECSGame |
game |
protected ComponentRetriever<HandComponent> |
hand |
protected PhaseController |
phase |
| Constructor and Description |
|---|
GameTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertResource(Entity entity,
ECSResource resource,
int expected) |
void |
before() |
protected Entity |
cardToHand(Predicate<Entity> condition) |
protected Entity |
currentPlayer() |
protected Entity |
findCardInDeck(Predicate<Entity> condition) |
protected List<Entity> |
findPossibleTargets(Entity entity,
String actionName) |
protected ECSAction |
getAction(Entity entity,
String actionName) |
protected Entity |
getOpponent() |
protected Predicate<Entity> |
isCreatureType(String creatureType) |
protected void |
nextPhase() |
protected abstract void |
onAfterGameStart() |
protected abstract void |
setupGame(ECSGame ecsGame) |
protected void |
useAction(Entity entity,
String actionName) |
protected void |
useActionWithFailedTarget(Entity source,
String actionName,
Entity target) |
protected void |
useActionWithTarget(Entity entity,
String actionName,
Entity target) |
protected void |
useFail(Entity entity,
String actionName) |
protected void |
useFail(Entity entity,
String actionName,
Entity performer) |
protected ECSGame game
protected ComponentRetriever<ActionComponent> actions
protected ComponentRetriever<CardComponent> card
protected ComponentRetriever<DeckComponent> deck
protected ComponentRetriever<HandComponent> hand
protected ComponentRetriever<BattlefieldComponent> field
protected ComponentRetriever<CreatureTypeComponent> ctype
protected PhaseController phase
public void before()
protected abstract void onAfterGameStart()
protected abstract void setupGame(ECSGame ecsGame)
protected Entity getOpponent()
protected void assertResource(Entity entity, ECSResource resource, int expected)
protected void useActionWithFailedTarget(Entity source, String actionName, Entity target)
protected void useActionWithTarget(Entity entity, String actionName, Entity target)
protected void nextPhase()
protected Entity currentPlayer()
Copyright © 2015. All rights reserved.