Exemple #1
0
        public override void activate(GameInit gameInit, Character interactingCharacter, int activationCode)
        {
            if (locked)
            {
                chatWindow = true;
                if (false)
                {
                    messageBlockIndex = 1;
                    locked = false;
                }
                else
                {
                    messageBlockIndex = 0;
                }
            }
            else
            {
                finishedActivating = false;

                if (orientation == 0)
                {
                    animation.setNewAnimation(2);
                }
                else
                {
                    animation.setNewAnimation(3);
                }
            }
        }
        public Character createCharacter(int type, int subtype)
        {
            Character character;

            if (type == 0)
            {
                character = new Character(0, new HumanoidCharacterAnimations(subtype, humAnimations));

            }
            else
            {
                character = new Character(0, new HumanoidCharacterAnimations(subtype, humAnimations));
            }

            return character;
        }
Exemple #3
0
 public void addPartyMember(Character character)
 {
     partyMembers.Add(character);
 }
 public abstract void activate(GameInit gameInit, Character interactingCharacter, int activationCode);
 public abstract void continueActivation(GameInit gameInit, Character interactingCharacter);
Exemple #6
0
 public override void continueActivation(GameInit gameInit, Character interactingCharacter)
 {
 }
Exemple #7
0
 public override void activate(GameInit gameInit, Character interactingCharacter, int activationCode)
 {
 }
Exemple #8
0
 public override void continueActivation(GameInit gameInit, Character interactingCharacter)
 {
     animation.advanceAnimation();
     if (animation.isAnimationFinished())
     {
         finishedActivating = true;
     }
 }
Exemple #9
0
 public void addCharacter(Character character, int x, int y)
 {
     trafficMap.getCharacterBooleanMap()[x, y] = true;
     trafficMap.getCharacterMap()[x, y] = character;
 }