57 line
1,023 B
C++
57 line
1,023 B
C++
//
|
|
// Created by Victor Le Roch on 20/05/2020.
|
|
//
|
|
|
|
#include "../include/Terrarium.h"
|
|
#include "../../core_simulation.h"
|
|
Terrarium::Terrarium(int id) : id(id),
|
|
radState(LOW), tapState(LOW){}
|
|
|
|
int Terrarium::getRadState() const {
|
|
return radState;
|
|
}
|
|
|
|
void Terrarium::setRadState(int radState) {
|
|
Terrarium::radState = radState;
|
|
}
|
|
|
|
int Terrarium::getTapState() const {
|
|
return tapState;
|
|
}
|
|
|
|
void Terrarium::setTapState(int tapState) {
|
|
Terrarium::tapState = tapState;
|
|
}
|
|
|
|
int Terrarium::getNextState() const {
|
|
return NextState;
|
|
}
|
|
|
|
void Terrarium::setNextState(int nextState) {
|
|
NextState = nextState;
|
|
}
|
|
|
|
int Terrarium::getPrevState() const {
|
|
return PrevState;
|
|
}
|
|
|
|
void Terrarium::setPrevState(int prevState) {
|
|
PrevState = prevState;
|
|
}
|
|
|
|
int Terrarium::getOkState() const {
|
|
return OKState;
|
|
}
|
|
|
|
void Terrarium::setOkState(int okState) {
|
|
OKState = okState;
|
|
}
|
|
|
|
int Terrarium::getBackState() const {
|
|
return BackState;
|
|
}
|
|
|
|
void Terrarium::setBackState(int backState) {
|
|
BackState = backState;
|
|
}
|
|
|