You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
#include "VirusAttack.h"
|
|
|
|
#include "olcUTIL_Camera2D.h"
|
|
|
|
|
|
|
|
class Scenario{
|
|
|
|
public:
|
|
|
|
Scenario(VirusAttack*game);
|
|
|
|
virtual void Start();
|
|
|
|
void _Update();
|
|
|
|
virtual void Update()=0;
|
|
|
|
void _Draw();
|
|
|
|
virtual void Draw()=0;
|
|
|
|
void DisplayDialog(std::string dialogText,bool spooky=false);
|
|
|
|
void SetObjective(std::string objective);
|
|
|
|
void SetupCameraTarget(vf2d pos);
|
|
|
|
void MoveCamera();
|
|
|
|
protected:
|
|
|
|
VirusAttack*game;
|
|
|
|
int state=0;
|
|
|
|
Textbox dialog;
|
|
|
|
float initialWaitTimer=3;
|
|
|
|
utils::Camera2D camera;
|
|
|
|
vf2d cameraTargetPos={};
|
|
|
|
};
|
|
|
|
|
|
|
|
class Stage1:public Scenario{
|
|
|
|
public:
|
|
|
|
Stage1(VirusAttack*game);
|
|
|
|
void Start()override;
|
|
|
|
void Update()override;
|
|
|
|
void Draw()override;
|
|
|
|
};
|