StateConnection.cpp 813 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-09-10
  6. * Changed: 2020-09-10
  7. *
  8. * */
  9. #include "StateConnection.hpp"
  10. #include <utility>
  11. ls_std::StateConnection::StateConnection(std::string _connectionId, std::shared_ptr<State> _state) :
  12. Class("StateConnection"),
  13. connectionId(std::move(_connectionId)),
  14. state(std::move(_state))
  15. {}
  16. std::string ls_std::StateConnection::getConnectionId() {
  17. return this->connectionId;
  18. }
  19. std::shared_ptr<ls_std::State> ls_std::StateConnection::getState() {
  20. return this->state;
  21. }
  22. bool ls_std::StateConnection::isPassable() {
  23. return this->condition;
  24. }
  25. void ls_std::StateConnection::updatePassCondition(bool _condition) {
  26. this->condition = _condition;
  27. }