26 lines
472 B
C++
26 lines
472 B
C++
#ifndef GUARD_INVADERSGRID_H
|
|
#define GUARD_INVADERSGRID_H
|
|
|
|
#include<vector>
|
|
|
|
using namespace std;
|
|
|
|
enum class InvaderType {
|
|
TYPEA,
|
|
TYPEB,
|
|
TYPEC,
|
|
NONE,
|
|
};
|
|
class InvadersColumn : public vector<InvaderType>{
|
|
public:
|
|
// idk why CLion says this is not implemented, but it is
|
|
bool hasNoValid() const;
|
|
unsigned getOutterInvader() const;
|
|
unsigned randomValid() const;
|
|
};
|
|
class InvadersGrid : public vector<InvadersColumn>{
|
|
public:
|
|
unsigned randomValid() const;
|
|
};
|
|
|
|
#endif |