Gamelib/src/test/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogicTest.java

43 lines
1.1 KiB
Java
Raw Normal View History

2021-05-18 17:03:34 +00:00
package uulm.teamname.marvelous.gamelibrary.gamelogic;
import org.junit.jupiter.api.Test;
import uulm.teamname.marvelous.gamelibrary.IntVector2;
import uulm.teamname.marvelous.gamelibrary.events.Event;
import uulm.teamname.marvelous.gamelibrary.requests.RequestBuilder;
import uulm.teamname.marvelous.gamelibrary.requests.RequestType;
import java.util.ArrayList;
import static org.assertj.core.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.*;
class GameLogicTest {
@Test
void executeRequest() {
GameState state = new GameState(new IntVector2(10, 10));
//build a nice state (add entities and stuff)
ArrayList<Event> result = GameLogic.executeRequest(state, new RequestBuilder(RequestType.MeleeAttackRequest)
//build a nice request to check
//.withOriginEntity()
.buildCharacterRequest());
//check if result contains the right events
}
@Test
void buildGameStateEvent() {
}
@Test
void checkRequest() {
}
@Test
void applyEvent() {
}
@Test
void checkWinConditions() {
}
}