MCPcopy Create free account
hub / github.com/ActiveState/code / size

Method size

recipes/Python/578007_processing_DEMO_Boids/recipe-578007.py:214–216  ·  view source on GitHub ↗

Get number of fish in school and return the total count.

(self)

Source from the content-addressed store, hash-verified

212 return self.fish_deque.popleft()
213
214 def size(self):
215 "Get number of fish in school and return the total count."
216 return len(self.fish_deque)
217
218 def render(self, graphics):
219 "Draw each fish in this school to the graphics context."

Callers 2

kill_fishMethod · 0.95
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected