-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathState.cpp
More file actions
50 lines (40 loc) · 982 Bytes
/
Copy pathState.cpp
File metadata and controls
50 lines (40 loc) · 982 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* State.cpp
*
* Created on: Feb 9, 2013
* Author: dan
*/
#include "State.h"
State::State(): name("BASE") {
}
State::State(string n): name(n){
}
State::~State() {
// TODO Auto-generated destructor stub
}
void State::handleInput(StateMachine* sm, std::vector<bool> buttons){
}
void State::set_leds(StateMachine* sm){ }
void State::changeState(StateMachine* sm, State* newState) {
sm->changeState(newState);
}
std::string State::getName(){
return name;
}
void State::unlock(){}
void State::lock(){}
void State::play(){}
void State::start_blast(){}
void State::stop_blast(){}
bool State::unlock_pressed(vector<bool>& buttons){
return buttons[0]; //TODO use constant
}
bool State::lock_pressed(vector<bool>& buttons){
return buttons[1]; //TODO use constant
}
bool State::play_stop_pressed(vector<bool>& buttons){
return buttons[2]; //TODO use constant
}
bool State::blast_pressed(vector<bool>& buttons){
return buttons[3]; //TODO use constant
}