public bool useItem( Student s) { if (this.getType() == type.skill) { return s.addSkill(this); } else if (this.getType() == type.cure) { return s.changeStatus(this); } else if (this.getType() == type.capture) { return s.capture(this); } return false; }