public int GetPossessionCount(ICharacter.TYPE type) { switch (type) { case ICharacter.TYPE.FIGHTER: return(_possessionFighter); case ICharacter.TYPE.ARCHER: return(_possessionArcher); case ICharacter.TYPE.MAGICIAN: return(_possessionMagician); default: return(-1); } }
public Compatibility CheckCompatibility(ICharacter.TYPE challenger, ICharacter.TYPE defender) { int result = (challenger - defender + 3) % 3; return((Compatibility)result); }