Esempio n. 1
0
bool		Entity::collide(Entity const& target) const
{
  Hitbox	*self;
  Hitbox	*op;

  if ((self = getComponent<Hitbox>()) &&
      (op = target.getComponent<Hitbox>()))
    {
      return (self->isInTouch(*op));
    }
  return (false);
}