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(@NotNull java.lang.String name,
@NotNull java.lang.String displayName,
@NotNull Range range)
Add an attribute to check.
|
void |
validate(G gameObject,
@NotNull ErrorCollector<G,A,R> errorCollector)
Validate a game object.
|
public void add(@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull java.lang.String displayName,
@NotNull
@NotNull Range range)
throws InvalidCheckException
name - the attribute name to checkdisplayName - the attribute name to display in error messagesrange - the valid attribute values rangeInvalidCheckException - if the check is invalidpublic void validate(@NotNull
G gameObject,
@NotNull
@NotNull ErrorCollector<G,A,R> errorCollector)
gameObject - the game object to checkerrorCollector - the error collector to receive the errors