summaryrefslogtreecommitdiff
path: root/include/game_state.h
blob: 1b35fc615c046c2dab728df3bcb360dbb20f8e85 (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
#pragma once

#include "alien.h"
#include "enemy_bullet.h"
#include "player_missile.h"
#include "shield.h"
#include "spaceship.h"
#include <vector>
#include <string>

class GameState
{
public:
    GameState(std::string mapFilename);
    void logState();
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);
};