StateConnection.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-09-10
  6. * Changed: 2020-10-29
  7. *
  8. * */
  9. #include "StateConnection.hpp"
  10. ls_std::StateConnection::StateConnection(ls_std::StateConnectionId _connectionId, ls_std::StateId _stateId) :
  11. Class("StateConnection"),
  12. connectionId(std::move(_connectionId)),
  13. stateId(std::move(_stateId))
  14. {}
  15. ls_std::StateConnectionId ls_std::StateConnection::getConnectionId() {
  16. return this->connectionId;
  17. }
  18. ls_std::StateId ls_std::StateConnection::getStateId() {
  19. return this->stateId;
  20. }
  21. bool ls_std::StateConnection::isPassable() const {
  22. return this->condition;
  23. }
  24. void ls_std::StateConnection::setConnectionId(StateConnectionId _connectionId)
  25. {
  26. this->connectionId = std::move(_connectionId);
  27. }
  28. void ls_std::StateConnection::setStateId(StateId _stateId)
  29. {
  30. this->stateId = std::move(_stateId);
  31. }
  32. void ls_std::StateConnection::updatePassCondition(bool _condition) {
  33. this->condition = _condition;
  34. }