File: game_state.h

package info (click to toggle)
rockdodger 0.9.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,220 kB
  • ctags: 756
  • sloc: ansic: 5,374; makefile: 159; sh: 21
file content (29 lines) | stat: -rw-r--r-- 672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __GAME_STATE_H__20130511
#define __GAME_STATE_H__20130511

/*! \brief Perform the dead pause
 *
 * Called when the player is dead. This will refill the shields and
 * reset the ship position.
 */
void dead_pause();

/*! \brief handle state changes due to timeout
 */
void handle_state_timeout();

/* \brief toggle game pause status
 *
 * This switches the game state between GAME_PLAY and GAME_PAUSED. In
 * debug mode all other mode will cause an assertion error!
 */
void pausegame();

/*! \brief reset ship state
 *
 * Reset the ship information, like position, shields, etc. This is
 * usually called when the game begins.
 */
void reset_ship_state();

#endif