diff options
author | Stephen Enders <smenders@gmail.com> | 2021-01-23 11:52:32 -0500 |
---|---|---|
committer | Stephen Enders <smenders@gmail.com> | 2021-01-23 11:52:32 -0500 |
commit | a408a43cd105b89a8d44292e2ef69802a5660497 (patch) | |
tree | a70ce8c54f57c2f6f2a8603b9e45d352cc5bc083 /timedLatch.cpp | |
parent | f01537a8ff454b68b83574f16cb4e2ff244a4e8a (diff) |
Move source files to src folder
We'll be making a few source files it'll be useful to have them
organized at least somewhat from our non-src files
Diffstat (limited to 'timedLatch.cpp')
-rw-r--r-- | timedLatch.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/timedLatch.cpp b/timedLatch.cpp deleted file mode 100644 index 66714a5..0000000 --- a/timedLatch.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "timedLatch.hpp" - -namespace ur { - -TimedLatch::TimedLatch(sf::Time duration) -{ - this->duration = duration; - this->clock = sf::Clock(); - this->isStarted = false; -}; - -void -TimedLatch::start() -{ - this->clock.restart(); - this->isStarted = true; -}; - -bool -TimedLatch::is_running() -{ - return this->isStarted && this->clock.getElapsedTime() < duration; -}; - -bool -TimedLatch::is_completed() -{ - - return this->isStarted && this->clock.getElapsedTime() >= duration; -}; - -void -TimedLatch::reset() -{ - this->isStarted = false; -}; - -} |