MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / SaucerGlyph

Class SaucerGlyph

examples/space_invaders/space_invaders.py:259–268  ·  view source on GitHub ↗

Describe the enemy saucer flying overhead.

Source from the content-addressed store, hash-verified

257
258
259class SaucerGlyph(EnemyGlyph):
260 """Describe the enemy saucer flying overhead."""
261
262 __mapper_args__ = {"polymorphic_identity": "saucer"}
263
264 def glyph_for_state(self, coord, state):
265 if state["flip"] == 0:
266 return self.alt_data
267 else:
268 return self.data
269
270
271class MessageGlyph(Glyph):

Callers 1

init_glyphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected