ge211  2021.5.1
A student game engine
Multiplexed_sprite Class Referenceabstract

Detailed Description

A Sprite that allows switching between other sprites based on the time at rendering.

Definition at line 455 of file ge211_sprites.hxx.

+ Inheritance diagram for Multiplexed_sprite:
+ Collaboration diagram for Multiplexed_sprite:

Public Member Functions

void reset ()
 Resets the age of the sprite to 0.
 
- Public Member Functions inherited from Sprite
virtual Dims< int > dimensions () const =0
 Returns the current dimensions of this Sprite. More...
 

Protected Member Functions

virtual const Spriteselect_ (Duration age) const =0
 Override this to specify what sprite to render, based on the age of this sprite. More...
 

Member Function Documentation

◆ select_()

virtual const Sprite& select_ ( Duration  age) const
protectedpure virtual

Override this to specify what sprite to render, based on the age of this sprite.

This can be used to implement animation.


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