-
-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathspectator.h
26 lines (21 loc) · 852 Bytes
/
spectator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "creature_view.h"
#include "event_listener.h"
class View;
class Spectator : public OwnedObject<Spectator>, public CreatureView, public EventListener<Spectator> {
public:
Spectator(Level*, View*);
void onEvent(const GameEvent&);
virtual const MapMemory& getMemory() const override;
virtual void getViewIndex(Vec2 pos, ViewIndex&) const override;
virtual void refreshGameInfo(GameInfo&) const override;
virtual Vec2 getScrollCoord() const override;
virtual Level* getCreatureViewLevel() const override;
virtual double getAnimationTime() const override;
virtual vector<Vec2> getVisibleEnemies() const override;
virtual CenterType getCenterType() const override;
virtual const vector<Vec2>& getUnknownLocations(const Level*) const override;
private:
Level* level = nullptr;
View* view = nullptr;
};