コード例 #1
0
ファイル: Player.cs プロジェクト: aspirecya/ynov_rpg_project
        //-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------//


        public static Player MakeStartingPlayer(string name)
        {
            Player player        = new Player(name);
            Weapon defaultWeapon = WorldInitialization.GetWeapon(WorldInitialization.ITEM_WOODEN_SWORD);

            player.currentWeapon  = defaultWeapon;
            player.playerLocation = WorldInitialization.GetLocation(WorldInitialization.LOC_HOME);

            return(player);
        }
コード例 #2
0
ファイル: Player.cs プロジェクト: aspirecya/ynov_rpg_project
 public void Respawn()
 {
     GoTo(WorldInitialization.GetLocation(WorldInitialization.LOC_HOME));
     FullHeal();
 }