コード例 #1
0
ファイル: GameViewModel.cs プロジェクト: coharou/TBQuestGame
        public void DungeonTransition()
        {
            // Called when the player has completed a layer of a dungeon
            // Examples: reaching the dungeon exit; using an item

            UpdateDungeonValues();
            InitiateNewLocation();

            GenerateItemList();

            RemoveAllPassives();

            EnemyNPCs.Clear();
            EnemyPosX.Clear();
            EnemyPosY.Clear();

            Gamestate.TimeSinceMerchantSpawn = Gamestate.TimeSinceMerchantSpawn + 1;

            CreateListsOfNPCs();

            Gamestate.Location = Location.Name;
        }
コード例 #2
0
ファイル: GameViewModel.cs プロジェクト: coharou/TBQuestGame
 public void RemoveEnemyFromList(Enemy e)
 {
     EnemyNPCs.Remove(e);
 }