Advertisement
Lucassim

Untitled

Jul 29th, 2013
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. bool estaEnRango(Enemigo* e, Personaje*p){
  2.     int radio = e->radio;
  3.     //Salio
  4.     if (p->x > 100)
  5.         return false;
  6.     if (p->x <= e->x + radio)
  7.         if (p->x >= e->x -radio)
  8.             if (p->y <= e->y + radio)
  9.                 if (p->y >= e->y -radio)
  10.                     return true;
  11.     return false;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement