Package ai.nettogrof.battlesnake.info
Class SquadRuleset
- java.lang.Object
 - 
- ai.nettogrof.battlesnake.info.SquadRuleset
 
 
- 
public class SquadRuleset extends Object
SquadRuleset is the class that contain all the informations and related methods to Squad ruleset- Version:
 - Summer 2022
 - Author:
 - carl.lajeunesse
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private booleanallowBodyCollisionsprivate booleansharedEliminationprivate booleansharedHealthprivate booleansharedLength 
- 
Constructor Summary
Constructors Constructor Description SquadRuleset(com.fasterxml.jackson.databind.JsonNode node) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyRules(List<SnakeInfo> snakes)booleanisAllowBodyCollisions()booleanisSharedElimination()booleanisSharedHealth()booleanisSharedLength() 
 - 
 
- 
- 
Method Detail
- 
isAllowBodyCollisions
public boolean isAllowBodyCollisions()
- Returns:
 - the allowBodyCollisions
 
 
- 
isSharedElimination
public boolean isSharedElimination()
- Returns:
 - the sharedElimination
 
 
- 
isSharedHealth
public boolean isSharedHealth()
- Returns:
 - the sharedHealth
 
 
- 
isSharedLength
public boolean isSharedLength()
- Returns:
 - the sharedLength
 
 
 - 
 
 -