LocationChangedEvent.h 457 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "Event.h"
  3. #include "Block.h"
  4. #include <Vec3.h>
  5. class LocationChangedEvent : public Event
  6. {
  7. private:
  8. const Block *block;
  9. const Framework::Vec3<int> oldPosition;
  10. const Framework::Vec3<int> newPosition;
  11. public:
  12. LocationChangedEvent( Block *block, Framework::Vec3<int> oldPosition, Framework::Vec3<int> newPosition );
  13. Framework::Vec3<int> getOldPosition() const;
  14. Framework::Vec3<int> getNewPosition() const;
  15. };