Go to the documentation of this file.
20 package net.sf.gridarta.model.mapmodel;
22 import java.awt.Point;
23 import java.util.ArrayList;
24 import java.util.Collections;
25 import java.util.List;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
80 private List<MapSquare<G, A, R>>
lightSources = Collections.emptyList();
143 public void getMapLocation(@NotNull
final Point pos,
final int dx,
final int dy) {
172 @SuppressWarnings(
"unchecked")
181 gameObject.setContainer(
this,
mapX,
mapY);
197 for (
final G gameObject :
reverse()) {
198 if (gameObjectMatcher.isMatching(gameObject)) {
215 for (
final G gameObject :
reverse()) {
216 if (gameObjectMatcher.isMatching(gameObject)) {
231 for (
final G gameObject :
this) {
232 if (gameObjectMatcher.isMatching(gameObject)) {
249 for (
final G gameObject :
this) {
250 if (gameObjectMatcher.isMatching(gameObject)) {
267 @Nullable G result =
null;
268 for (
final G tmp :
this) {
269 if (!gameObjectMatcher.isMatching(tmp)) {
295 public boolean equals(@Nullable
final Object obj) {
296 if (obj ==
null || obj.getClass() != getClass()) {
void setThisContainer(@NotNull final G gameObject)
G getFirst(@NotNull final GameObjectMatcher gameObjectMatcher)
void getMapLocation(@NotNull final Point pos)
G getLast(@NotNull final GameObjectMatcher gameObjectMatcher)
List< MapSquare< G, A, R > > lightSources
G getBeforeFirst(@NotNull final GameObjectMatcher gameObjectMatcher)
void setLightRadius(final int lightRadius)
MapModel< G, A, R > getMapModel()
static final long serialVersionUID
void endSquareChange(@NotNull MapSquare< G, A, R > mapSquare)
boolean equals(@Nullable final Object obj)
MapSquare< G, A, R > getMapSquare()
void addLightSource(@NotNull final MapSquare< G, A, R > mapSquare)
void beginSquareChange(@NotNull MapSquare< G, A, R > mapSquare)
transient Iterable< G > reverse
MapSquare< G, A, R > getMapSquareOptional()
final MapModel< G, A, R > mapModel
MapSquare< G, A, R > clone()
void getMapLocation(@NotNull final Point pos, final int dx, final int dy)
G getLastOfLeadingSpan(@NotNull final GameObjectMatcher gameObjectMatcher)
G getAfterLast(@NotNull final GameObjectMatcher gameObjectMatcher)
MapSquare(@NotNull final MapModel< G, A, R > mapModel, final int mapX, final int mapY)
void removeLightSource(@NotNull final MapSquare< G, A, R > mapSquare)