Droplet switch menu names

This commit is contained in:
2020-10-02 22:10:09 -04:00
parent eb0b312c48
commit 5c5d51354b
6 changed files with 42 additions and 19 deletions

View File

@ -15,3 +15,15 @@ void DropletManager::SetSelected(DropletState state) {
DropletState DropletManager::GetSelected() {
return selected_drop;
}
std::string DropletManager::OtherStateName(DropletState state) {
switch (state) {
case DropletState::kLeft:
return "Right";
case DropletState::kRight:
return "Left";
case DropletState::kFull:
default:
return "";
}
}

View File

@ -35,6 +35,14 @@ public:
* @return selected droplet
*/
DropletState GetSelected();
/*
* Returns the name of the other droplet
*
* @param state droplat state of the current
* @return other droplet name
*/
std::string OtherStateName(DropletState state);
};
#endif // CASCADE_DROPLETS_DROPLET_MANAGER_H_