예제 #1
0
    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);
        }
    }
예제 #2
0
    public Compatibility CheckCompatibility(ICharacter.TYPE challenger, ICharacter.TYPE defender)
    {
        int result = (challenger - defender + 3) % 3;

        return((Compatibility)result);
    }