banish() public method

Once the Pickup has been claimed, this method removes it from the screen
public banish ( ) : void
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Adds the given Pickup to this Character's inventory (and the Pickup disappears)
 /// </summary>
 /// <param name="p">The Pickup to add</param>
 public void pickup(Pickup p)
 {
     this.inventory.addItem(p.getItemType());
     p.banish();
 }