1 /*************************************************************************** 2 * Copyright © 2020 - Arianne * 3 *************************************************************************** 4 *************************************************************************** 5 * * 6 * This program is free software; you can redistribute it and/or modify * 7 * it under the terms of the GNU General Public License as published by * 8 * the Free Software Foundation; either version 2 of the License, or * 9 * (at your option) any later version. * 10 * * 11 ***************************************************************************/ 12 package games.stendhal.server.constants; 13 14 /** 15 * Definitions for killing enemies. 16 */ 17 public enum KillType { 18 SOLO, 19 SHARED, 20 ANY; 21 22 solo()23 public boolean solo() { 24 return this.equals(SOLO); 25 } 26 shared()27 public boolean shared() { 28 return this.equals(SHARED); 29 } 30 any()31 public boolean any() { 32 return this.equals(SOLO) || this.equals(SHARED) || this.equals(ANY); 33 } 34 } 35