blob: 7ccef54c0d8830b7c1d8697491e369beec4cb20d (
plain)
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
26
27
28
|
#pragma once
#include "alien.h"
#include "enemy_bullet.h"
#include "player_missile.h"
#include "shield.h"
#include "spaceship.h"
#include <vector>
#include <string>
#include <istream>
class GameState
{
public:
GameState(std::istream &&mapFile);
void logState();
const std::vector<Alien>& aliens() const { return _aliens; }
private:
std::vector<Alien> _aliens;
std::vector<EnemyBullet> _bullets;
std::vector<PlayerMissile> _missiles;
std::vector<Shield> _shields;
std::vector<Spaceship> _spaceships;
int addEntity(int x, int y, char type);
};
|