 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.gameobject;
24 import org.jetbrains.annotations.NotNull;
25 import org.jetbrains.annotations.Nullable;
74 super(
container ==
null ?
item +
" was expected to be inside a container but wasn't." :
item +
" was expected to be inside " +
container +
" but was in " +
item.getContainer());
BaseObject<?, ?, ?, ?> getItem()
Returns the game object that was not inside a container but should have been.
NotInsideContainerException(@NotNull final GameObject<?, ?, ?> item)
Creates a new instance.
Base package of all Gridarta classes.
GameObjectContainer<?, ?, ?> getContainer()
Returns the container that the GameObject was expected in.
static final long serialVersionUID
The serial version UID.
final BaseObject<?, ?, ?, ?> item
The GameObject that was not inside a / the container but should have been.
This exception is thrown in case a method of a GameObject without a container or the wrong container ...
NotInsideContainerException(@Nullable final GameObjectContainer<?, ?, ?> container, @NotNull final GameObject<?, ?, ?> item)
Creates a new instance.
Base class for classes that contain GameObjects as children in the sense of containment.
final GameObjectContainer<?, ?, ?> container
The expected container if != null or null if expected to be in any container.