SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
GoodPixelManager Class Reference

Extension of the PixelManager class, which override the draw methods to use sprites instead of shapes. More...

#include <goodPixelManager.h>

Inheritance diagram for GoodPixelManager:
Collaboration diagram for GoodPixelManager:

Public Member Functions

 GoodPixelManager (MinGL &window)
 constructor the pixel manager class More...
 
- Public Member Functions inherited from PixelManager
virtual void loadSprites (vector< Task > &tasks)
 loads sprites in parallel using multiple threads More...
 
 PixelManager (MinGL &window)
 constructor the pixel manager class More...
 
virtual void drawInvaderA (const Position &baseVector, unsigned size, const RGBAcolor &color) const
 display a type A invader on screen More...
 
virtual void drawInvaderB (const Position &baseVector, unsigned size, const RGBAcolor &color) const
 display a type B invader on screen More...
 
virtual void drawInvaderC (const Position &baseVector, unsigned size, const RGBAcolor &color) const
 display a type C invader on screen More...
 
virtual void drawPlayer (playerID pID, unsigned x, unsigned width, const nsGraphics::RGBAcolor &color) const
 display a player on screen More...
 
virtual void drawMissile (const Position &baseVector, unsigned width, const nsGraphics::RGBAcolor &color) const
 display a missile on screen More...
 
virtual void drawTorpedo (const Position &baseVector, unsigned width, const nsGraphics::RGBAcolor &color) const
 display a torpedo on screen More...
 
virtual void drawHeart (const Position &baseVector) const
 display a singular heart on screen More...
 
void drawSprite (const MySprite &msp, const Position &pos) const
 display a sprite on screen More...
 
void displayButton (const Position &baseVector, const string &text, nsGraphics::RGBAcolor &color)
 display a menu button on screen More...
 
void drawText (const Position &pos, const string &text, const RGBAcolor &color=nsGraphics::KWhite, Font font=Font::BITMAP_TIMES_ROMAN_24) const
 display text on screen More...
 
PlayMode showInitialMenu ()
 show the title screen of the game More...
 
bool showDeathMenu (const vector< ScoreLink > &rankings, const WinValue &winner)
 show the menu after a player lose, or all invader has been defeated More...
 
unsigned getScreenHeight () const
 give the height of the screen More...
 
unsigned getScreenWidth () const
 give the width of the screen More...
 
void startFrame () const
 clear the screen for a new frame More...
 
void endFrame () const
 finish a frame render More...
 
void askPlayerNameMenu (playerID pID, unsigned score, string &name)
 display the player name selection menu More...
 
void drawGodBench (int y) const
 display god's bar More...
 
void drawGodFace (int y, bool angry=false) const
 display god's face More...
 

Additional Inherited Members

- Public Attributes inherited from PixelManager
MinGL & window
 display window More...
 
MySprite logo
 sprite of the logo of the game More...
 
MySprite menuBackground
 sprite of the background during menu More...
 
MySprite gameBackground
 sprite of the background during gameplay More...
 
MySprite rightHand
 sprite of the right hand of god More...
 
MySprite leftHand
 sprite of the left hand of god More...
 

Detailed Description

Extension of the PixelManager class, which override the draw methods to use sprites instead of shapes.

Definition at line 23 of file goodPixelManager.h.

Constructor & Destructor Documentation

◆ GoodPixelManager()

GoodPixelManager::GoodPixelManager ( MinGL &  window)
explicit

constructor the pixel manager class

Parameters
[in]window: window of the pixel manager

Definition at line 15 of file goodPixelManager.cpp.


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