Ejemplo n.º 1
0
        /// <summary>
        /// Moves the NPC to the appropriate floor and location based on the their expected location and position
        /// </summary>
        internal void MoveNPCToDefaultScheduledPosition(TimeOfDay timeOfDay)
        {
            CharacterPosition npcXy = NPCRef.Schedule.GetCharacterDefaultPositionByTime(timeOfDay);

            // the NPC is a non-NPC, so we keep looking
            if (npcXy.X == 0 && npcXy.Y == 0)
            {
                return;
            }

            Move(npcXy);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Move the character to a new positon
 /// </summary>
 /// <param name="characterPosition"></param>
 internal void Move(CharacterPosition characterPosition)
 {
     CurrentCharacterPosition = characterPosition;
 }