nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::cinema::Clock Class Reference

#include <film.h>

Public Member Functions

 Clock (const Shot &shot)
float Advance (float seconds)
 Moves the film on by the seconds, and gives how far the game moved.
float film () const
float game () const

Detailed Description

The game's clock, which runs as fast as the shot's pace says against the film's.

Definition at line 31 of file film.h.

Constructor & Destructor Documentation

◆ Clock()

nanommo::cinema::Clock::Clock ( const Shot & shot)
inlineexplicit

Definition at line 33 of file film.h.

Member Function Documentation

◆ Advance()

float nanommo::cinema::Clock::Advance ( float seconds)

Moves the film on by the seconds, and gives how far the game moved.

Definition at line 199 of file film.cc.

◆ film()

float nanommo::cinema::Clock::film ( ) const
inline

Definition at line 38 of file film.h.

◆ game()

float nanommo::cinema::Clock::game ( ) const
inline

Definition at line 39 of file film.h.


The documentation for this class was generated from the following files: