Code Search for Developers
 
 
  

constants.py from Thousand Parsec at Krugle


Show constants.py syntax highlighted


# Start of battle event
EVENT_BATTLE_START = intern("battle start")

# Signaled when round messages have been dispatched and the round has begun
EVENT_ROUND_START = intern("round start")

# Signaled when View is ready to procede to next battle round
EVENT_VIEW_READY = intern("view ready")

# Log message event
EVENT_MESSAGE = intern("message")

# Signaled when a new entity is to be created
EVENT_ENTITY_NEW = intern("entity new")

# Signaled when an entity wishes the viewer to wait before continuing to the next round
EVENT_ENTITY_WAIT = intern("entity wait")

# Signaled when an entity no longer wants to viewer to wait
EVENT_ENTITY_READY = intern("entity ready")

# Signaled when one ship fires upon another
EVENT_ENTITY_FIRE = intern("entity fire")

# Signaled when a ship is damaged
EVENT_ENTITY_DAMAGE = intern("entity damaged")

# Signaled when a ship is destroyed
EVENT_ENTITY_DEATH = intern("entity death")

# Signaled when a laser must be drawn
EVENT_ANIMATION_LASER = intern("animation laser")

# Signaled when a damage animation must be drawn
EVENT_ANIMATION_DAMAGE = intern("animation damage")

# Signaled when a damage animation is complete
EVENT_ANIMATION_DAMAGE_COMPLETE = intern("animation damage complete")



See more files for this project here

Thousand Parsec

Thousand Parsec is a framework for turn based 4 X\'s game (eXplore, eXpand, eXploit, eXterminate). Designed for long games, supporting massive universes and has an easily expanded tech tree.

Project homepage: http://sourceforge.net/projects/thousandparsec
Programming language(s): C++,Python
License: other

  doc/
    relationship overview.dia
    relationship overview.png
  entities/
    __init__.py
    basicentity.py
    damageanimation.py
    laserblast.py
    message.py
    summaryscreen.py
  fonts/
    VeraMoBd.ttf
  minisec/
    battleship/
      model.png
    frigate/
      model.png
    planet/
      model.png
    scout/
      model.png
    types.xml
  tests/
    background.png
    battle1.xml
    battle2.xml
    battle3.xml
    battle4.xml
    battle5.xml
    battle6.xml
    damage_test.py
    laser_test.py
    ocemp_event_test.py
  BATTLEFORMAT
  README
  TODO
  WISHLIST
  actions.py
  battle.dtd
  battlecontroller.py
  battleparser.py
  battleview.py
  battleviewer.tailor
  constants.py
  example1.xml
  requirements.py
  run_battleviewer.py
  states.py
  utility.py
  weapons.py