public class Type<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Constructor and Description |
---|
Type() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
java.lang.String displayName,
Range range)
Add an attribute to check.
|
void |
validate(G gameObject,
ErrorCollector<G,A,R> errorCollector)
Validate a game object.
|
public void add(@NotNull java.lang.String name, @NotNull java.lang.String displayName, @NotNull Range range) throws InvalidCheckException
name
- The attribute name to check.displayName
- The attribute name to display in error messages.range
- The valid attribute values range.InvalidCheckException
- if the check is invalidpublic void validate(@NotNull G gameObject, @NotNull ErrorCollector<G,A,R> errorCollector)
gameObject
- The game object to check.errorCollector
- The error collector to receive the errors.