Man Over Board
Loading...
Searching...
No Matches
events.h File Reference

Defines the events that modify the game objects and game state. More...

#include "model.h"

Functions

void start_game (Model *model)
 
void tick_increment (Model *model)
 Enacts synchronous events. Sinks the swimmer.
 
void key_press (char key)
 Checks if the correct key is pressed, changes game state if so. Increases the score, raises the swimmer, and shifts the row's character pointer when the correct key is pressed.
 
void death ()
 

Detailed Description

Defines the events that modify the game objects and game state.

Group B: Thomas Kapocsi, Sylvie Mills

Author
Sylvie Mills

Function Documentation

◆ death()

void death ( )

Ends the game when the swimmer collides with the floor

◆ start_game()

void start_game ( Model * model)

Sets up the intial game state