23 package com.realtime.crossfire.jxclient.map;
25 import java.util.Collection;
26 import java.util.Collections;
27 import java.util.HashMap;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
43 private final Map<Integer, AnimationState>
animations =
new HashMap<>();
53 animationState.allocate(tag);
60 public void remove(
final int tag) {
71 if (animationState ==
null) {
72 System.err.println(
"No animation at "+tag+
" to update animation speed.");
86 return Collections.unmodifiableCollection(
animations.values());
96 if (animationState !=
null) {
97 animationState.free(tag);