MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / ArmyGlyph

Class ArmyGlyph

examples/space_invaders/space_invaders.py:247–256  ·  view source on GitHub ↗

Describe an enemy that's part of the "army".

Source from the content-addressed store, hash-verified

245
246
247class ArmyGlyph(EnemyGlyph):
248 """Describe an enemy that's part of the "army"."""
249
250 __mapper_args__ = {"polymorphic_identity": "army"}
251
252 def glyph_for_state(self, coord, state):
253 if state["flip"]:
254 return self.alt_data
255 else:
256 return self.data
257
258
259class SaucerGlyph(EnemyGlyph):

Callers 1

init_glyphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected