- Main Page
- Classes
- Files

- File List
- File Members

# C:/Users/Public/AGS Final Folder/BFLETCHER D4010283/Source/Game/Source/BreakoutErrorScene.cpp

Go to the documentation of this file.

    00001 #include "BreakoutErrorScene.h"
    00002
    00003 #include "Visualisation.h"
    00004 #include "EventManager.h"
    00005 #include "InputEvents.h"
    00006 #include "GameConfig.h"
    00007
    00008 BreakoutErrorScene::BreakoutErrorScene()
    00009 : BreakoutPauseScene()
    00010 {
    00011 }
    00012
    00013 BreakoutErrorScene::~BreakoutErrorScene()
    00014 {
    00015 }
    00016
    00017 void BreakoutErrorScene::Initialise()
    00018 {
    00019         Visualisation* pVis = Visualisation::getSingleton();
    00020
    00021         m_vTextLines.push_back(pVis->CreateSpriteText("A MAJOR ERROR HAS OCCURED", MENU_NORMAL_COLOUR));
    00022         m_vTextLines.push_back(pVis->CreateSpriteText("PRESS START TO CONTINUE", MENU_NORMAL_COLOUR));
    00023         m_vTextLines.push_back(pVis->CreateSpriteText("PRESS L, R AND START TO QUIT", MENU_NORMAL_COLOUR));
    00024
    00025         EventManager::getSingleton()->AddEventListener(ButtonInputEvent::cEventName, this);
    00026 }