nsnake
Classic snake game for the terminal
Loading...
Searching...
No Matches
Animation Class Referenceabstract

Abstract interface to any kind of Animation. More...

#include <Animation.hpp>

Inheritance diagram for Animation:
Collaboration diagram for Animation:

Public Member Functions

 Animation (Window *window)
 Creates an Animation that will occur on window.
 
virtual void load ()=0
 Loads all internal things.
 
virtual void update ()=0
 Updates Animation's internal state.
 
virtual void draw ()=0
 Shows Animation on the screen.
 

Protected Attributes

Windowwindow
 

Detailed Description

Abstract interface to any kind of Animation.

Definition at line 7 of file Animation.hpp.

Constructor & Destructor Documentation

◆ Animation()

Animation::Animation ( Window * window)
inline

Creates an Animation that will occur on window.

Definition at line 11 of file Animation.hpp.

◆ ~Animation()

virtual Animation::~Animation ( )
inlinevirtual

Definition at line 15 of file Animation.hpp.

Member Function Documentation

◆ draw()

virtual void Animation::draw ( )
pure virtual

Shows Animation on the screen.

Implemented in AnimationSnakes.

◆ load()

virtual void Animation::load ( )
pure virtual

Loads all internal things.

Implemented in AnimationSnakes.

◆ update()

virtual void Animation::update ( )
pure virtual

Updates Animation's internal state.

Implemented in AnimationSnakes.

Member Data Documentation

◆ window

Window* Animation::window
protected

Definition at line 27 of file Animation.hpp.


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