Skip to content
Snippets Groups Projects
Select Git revision
  • daf3602c64b2d7d6a57ac8292f517252ce1bab08
  • main default protected
  • variant
3 results

ModelElementTest.class

Blame
  • Forked from COUETOUX Basile / FirefighterStarter
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Tangible.cpp 566 B
    #include "Tangible.hpp"
    
    namespace megu {
        Tangible::Tangible(const Position & position, const Dimension & dimension) 
        : _box(position, dimension) {}
    
        bool Tangible::isColliding(const Tangible & entity) const {
            if(this != &entity) {
                return this->_box.intersect(entity._box);
            }
            return false;
        }
    
        bool Tangible::operator==(const Tangible & entity) const {
            return this->_box == entity._box;
        }
    
        /*bool Tangible::operator!=(const Tangible & entity) const {
            return !(*this == entity);
        }*/
    }