summaryrefslogtreecommitdiff
path: root/src/command.cpp
blob: ab134e9ed014c048beab8e6a625f3e6931834d56 (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
#include "command.h"
#include "game.h"

Command::~Command(){}

Nop::~Nop(){}
void Nop::execute( GameState &game ){
}

// Window commands
WindowClose::~WindowClose(){}
void WindowClose::execute( GameState &game ){
    game.close();
}

WindowFocus::~WindowFocus(){}
void WindowFocus::execute( GameState &game ){
    game.resume();
}

WindowUnFocus::~WindowUnFocus(){}
void WindowUnFocus::execute( GameState &game ){
    game.pause();
}

// Keyboard commands