MCPcopy Create free account
hub / github.com/catabriga/graphwar / isAnimating

Method isAnimating

src/Graphwar/Soldier.java:139–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 public boolean isAnimating()
140 {
141 if(animating)
142 {
143 return true;
144 }
145 else
146 {
147 if(System.currentTimeMillis() > nextAnimation)
148 {
149 animating = true;
150 timeAnimationStarted = System.currentTimeMillis();
151 animationNum = random.nextInt(Integer.MAX_VALUE);
152 return true;
153 }
154
155 return false;
156 }
157 }
158
159 public int getAnimationNum()
160 {

Callers 1

getSoldierImageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected