public void hurt(BaseGameplay g, Attack atk) { if (g != null) { g.receive(atk, this); } }
public void onCollide(BaseGameplay theOther) { //exemple : //Attack atk = new Attack(); //this.hurt(theOther, atk) //Quand cet objet heurte ou est heurté, il inflige des dégats }
public void interact(Interaction i, BaseGameplay g) { }
public void receive(Attack atk, BaseGameplay g) { }