Exemplo n.º 1
0
        private void UpdateExamineMessage()
        {
            string examineMessage = objectAttributes.InitialDescription;

            switch (currentState)
            {
            case EggState.Growing:
                examineMessage = "A small mottled egg";
                break;

            case EggState.Grown:
                examineMessage = "A large mottled egg. Something is moving inside it...";
                break;

            case EggState.Burst:
                examineMessage = "A large mottled egg. Doesn't look like it is moving...";
                break;

            case EggState.Squished:
                examineMessage = "A small mottled egg or so it was.";
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }

            objectAttributes.ServerSetArticleDescription(examineMessage);
        }