Skip to content
Snippets Groups Projects
Select Git revision
  • 244f61898215b85e6a58d1d2ef8f1f8fa9ff34b9
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

Grid.java

Blame
  • Forked from NAVES Guyslain / Game of life Template
    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);
        }*/
    }