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

#include <goodPixelManager.h>

Inheritance diagram for GoodPixelManager:
Collaboration diagram for GoodPixelManager:

Public Member Functions

 GoodPixelManager (MinGL &win)
 
- 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...
 
void drawInvaderA (const Position &baseVector, unsigned size, const RGBAcolor &color) const
 display a type A invader on screen More...
 
void drawInvaderB (const Position &baseVector, unsigned size, const RGBAcolor &color) const
 display a type B invader on screen More...
 
void drawInvaderC (const Position &baseVector, unsigned size, const RGBAcolor &color) const
 display a type C invader on screen More...
 
void drawPlayer (unsigned x, unsigned width, const nsGraphics::RGBAcolor &color) const
 display a player on screen More...
 
void drawMissile (const Position &baseVector, unsigned width, const nsGraphics::RGBAcolor &color) const
 display a missile on screen More...
 
void drawTorpedo (const Position &baseVector, unsigned width, const nsGraphics::RGBAcolor &color) const
 display a torpedo on screen More...
 
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 displayMenu (const Position &pos, Menu &currentMenu)
 display a menu on screen More...
 
void displayMenu (const Position &pos, Menu &currentMenu, const vector< ScoreLink > &rankings, const WinValue &winner)
 
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)
 
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
 
vector< TaskdrawTasks
 
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

Definition at line 6 of file goodPixelManager.h.

Constructor & Destructor Documentation

◆ GoodPixelManager()

GoodPixelManager::GoodPixelManager ( MinGL &  win)

Definition at line 13 of file goodPixelManager.cpp.


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