From bc7d4ff1d88249df0333bddb7948d878eb2e23bc Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:16:41 -0600 Subject: [PATCH] refactor: byebye `using namespace std` shoo --- Minecraft.Client/ClientConstants.h | 2 +- Minecraft.Client/GameState/Options.h | 2 +- Minecraft.Client/GameState/Settings.h | 2 +- Minecraft.Client/GameState/StatsCounter.h | 2 +- Minecraft.Client/GameState/StatsSyncer.h | 2 +- Minecraft.Client/Input/ConsoleInput.h | 2 +- Minecraft.Client/Input/KeyMapping.h | 2 +- Minecraft.Client/Level/MultiPlayerLevel.h | 4 ++-- Minecraft.Client/Level/ServerLevel.h | 2 +- Minecraft.Client/Minecraft.h | 2 +- Minecraft.Client/MinecraftServer.h | 2 +- Minecraft.Client/Network/MultiPlayerChunkCache.h | 2 +- Minecraft.Client/Network/PendingConnection.h | 2 +- Minecraft.Client/Network/PlayerChunkMap.h | 2 +- Minecraft.Client/Network/PlayerConnection.h | 2 +- Minecraft.Client/Network/PlayerInfo.h | 2 +- Minecraft.Client/Network/PlayerList.h | 2 +- Minecraft.Client/Network/ServerChunkCache.h | 2 +- Minecraft.Client/Network/ServerConnection.h | 2 +- Minecraft.Client/Network/ServerInterface.h | 2 +- Minecraft.Client/Platform/Durango/4JLibs/inc/4J_Storage.h | 2 +- Minecraft.Client/Platform/Durango/Network/DQRNetworkManager.h | 2 +- .../Platform/Durango/Network/PlatformNetworkManagerDurango.h | 2 +- Minecraft.Client/Platform/Orbis/4JLibs/inc/4J_Storage.h | 2 +- Minecraft.Client/Platform/PS3/4JLibs/inc/4J_Storage.h | 2 +- .../Platform/PS3/Leaderboards/PS3LeaderboardManager.h | 2 +- .../Platform/PS3/SPU_Tasks/ChunkUpdate/Tile_SPU.h | 2 +- Minecraft.Client/Platform/PSVita/4JLibs/inc/4J_Storage.h | 2 +- Minecraft.Client/Platform/Xbox/4JLibs/inc/4J_Storage.h | 2 +- Minecraft.Client/Platform/Xbox/Audio/SoundEngine.h | 2 +- Minecraft.Client/Platform/Xbox/Font/XUI_FontData.h | 2 +- Minecraft.Client/Platform/Xbox/Font/XUI_FontRenderer.h | 2 +- .../Platform/Xbox/Network/PlatformNetworkManagerXbox.h | 2 +- Minecraft.Client/Player/EntityTracker.h | 2 +- Minecraft.Client/Player/LocalPlayer.h | 2 +- Minecraft.Client/Player/ServerPlayer.h | 2 +- Minecraft.Client/Player/TrackedEntity.h | 2 +- Minecraft.Client/Player/User.h | 2 +- Minecraft.Client/Rendering/Chunk.h | 2 +- .../Rendering/EntityRenderers/EntityRenderDispatcher.h | 2 +- Minecraft.Client/Rendering/EntityRenderers/EntityRenderer.h | 2 +- Minecraft.Client/Rendering/EntityRenderers/MobRenderer.h | 2 +- .../Rendering/EntityRenderers/MobSpawnerRenderer.h | 2 +- Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.h | 2 +- Minecraft.Client/Rendering/LevelRenderer.h | 2 +- Minecraft.Client/Rendering/Models/Model.h | 2 +- Minecraft.Client/Rendering/Particles/GuiParticles.h | 2 +- Minecraft.Client/Rendering/Particles/Particle.h | 2 +- Minecraft.Client/Rendering/Particles/ParticleEngine.h | 4 ++-- Minecraft.Client/Textures/BufferedImage.h | 2 +- Minecraft.Client/Textures/HttpTexture.h | 2 +- Minecraft.Client/Textures/MemTexture.h | 2 +- Minecraft.Client/Textures/Packs/AbstractTexturePack.h | 2 +- Minecraft.Client/Textures/Packs/FileTexturePack.h | 2 +- Minecraft.Client/Textures/Packs/TexturePack.h | 2 +- Minecraft.Client/Textures/Packs/TexturePackRepository.h | 2 +- Minecraft.Client/Textures/Stitching/PreStitchedTextureMap.h | 2 +- Minecraft.Client/Textures/Stitching/StitchSlot.h | 2 +- Minecraft.Client/Textures/Stitching/StitchedTexture.h | 2 +- Minecraft.Client/Textures/Stitching/Stitcher.h | 2 +- Minecraft.Client/Textures/Stitching/TextureMap.h | 2 +- Minecraft.Client/Textures/Textures.h | 2 +- Minecraft.Client/UI/Button.h | 2 +- Minecraft.Client/UI/EditBox.h | 2 +- Minecraft.Client/UI/GuiComponent.h | 2 +- Minecraft.Client/UI/GuiMessage.h | 2 +- Minecraft.Client/UI/Screen.h | 2 +- Minecraft.Client/UI/Screens/AchievementPopup.h | 2 +- Minecraft.Client/UI/Screens/ChatScreen.h | 2 +- Minecraft.Client/UI/Screens/ConfirmScreen.h | 2 +- Minecraft.Client/UI/Screens/ConnectScreen.h | 2 +- Minecraft.Client/UI/Screens/ControlsScreen.h | 2 +- Minecraft.Client/UI/Screens/CreateWorldScreen.h | 2 +- Minecraft.Client/UI/Screens/DisconnectedScreen.h | 2 +- Minecraft.Client/UI/Screens/OptionsScreen.h | 2 +- Minecraft.Client/UI/Screens/RenameWorldScreen.h | 2 +- Minecraft.Client/UI/Screens/TextEditScreen.h | 2 +- Minecraft.Client/UI/Screens/TitleScreen.h | 2 +- Minecraft.Client/UI/Screens/VideoSettingsScreen.h | 2 +- Minecraft.Client/UI/SimpleIcon.h | 2 +- Minecraft.Client/Utils/ArchiveFile.h | 2 +- Minecraft.Client/Utils/MemoryTracker.h | 2 +- Minecraft.Client/Utils/StringTable.h | 2 +- Minecraft.Client/Utils/WstringLookup.h | 2 +- Minecraft.World/AI/Goals/GoalSelector.h | 2 +- Minecraft.World/AI/Navigation/Node.h | 2 +- Minecraft.World/AI/Navigation/PathFinder.h | 2 +- Minecraft.World/Blocks/NotGateTile.h | 2 +- Minecraft.World/Blocks/RailTile.h | 2 +- Minecraft.World/Blocks/RedStoneDustTile.h | 2 +- Minecraft.World/Blocks/ReedTile.h | 2 +- Minecraft.World/Blocks/SandStoneTile.h | 2 +- Minecraft.World/Blocks/StoneSlabTile.h | 2 +- Minecraft.World/Blocks/Tile.h | 2 +- Minecraft.World/Blocks/TileEntities/ChestTileEntity.cpp | 2 +- Minecraft.World/Blocks/TileEntities/ChestTileEntity.h | 2 +- Minecraft.World/Blocks/TileEntities/DispenserTileEntity.cpp | 2 +- Minecraft.World/Blocks/TileEntities/DispenserTileEntity.h | 2 +- Minecraft.World/Blocks/TileEntities/FurnaceTileEntity.h | 2 +- Minecraft.World/Blocks/TileEntities/MobSpawnerTileEntity.h | 2 +- Minecraft.World/Blocks/TileEntities/MusicTileEntity.h | 2 +- Minecraft.World/Blocks/TileEntities/PotionBrewing.h | 2 +- Minecraft.World/Blocks/TileEntities/SignTileEntity.h | 2 +- Minecraft.World/Blocks/TileEntities/TileEntity.h | 2 +- Minecraft.World/Build/System.h | 2 +- Minecraft.World/Build/x64headers/extraX64.h | 2 +- Minecraft.World/Containers/AbstractContainerMenu.h | 2 +- Minecraft.World/Containers/CompoundContainer.h | 2 +- Minecraft.World/Containers/Container.h | 2 +- Minecraft.World/Containers/CraftingContainer.h | 2 +- Minecraft.World/Containers/Inventory.h | 2 +- Minecraft.World/Containers/SimpleContainer.h | 2 +- Minecraft.World/Entities/BossMobPart.h | 2 +- Minecraft.World/Entities/Entity.h | 2 +- Minecraft.World/Entities/EntityDamageSource.h | 2 +- Minecraft.World/Entities/IndirectEntityDamageSource.h | 2 +- Minecraft.World/Entities/Mob.h | 2 +- Minecraft.World/Entities/MobCategory.h | 2 +- Minecraft.World/Entities/MobEffect.h | 2 +- Minecraft.World/Entities/Mobs/Arrow.h | 2 +- Minecraft.World/Entities/Mobs/Boat.h | 2 +- Minecraft.World/Entities/Mobs/Chicken.h | 2 +- Minecraft.World/Entities/Mobs/Cow.h | 2 +- Minecraft.World/Entities/Mobs/Creeper.h | 2 +- Minecraft.World/Entities/Mobs/EnderDragon.h | 2 +- Minecraft.World/Entities/Mobs/Fireball.h | 2 +- Minecraft.World/Entities/Mobs/FishingHook.h | 2 +- Minecraft.World/Entities/Mobs/Ghast.h | 2 +- Minecraft.World/Entities/Mobs/Giant.h | 2 +- Minecraft.World/Entities/Mobs/ItemFrame.h | 2 +- Minecraft.World/Entities/Mobs/LightningBolt.h | 2 +- Minecraft.World/Entities/Mobs/Painting.h | 2 +- Minecraft.World/Entities/Mobs/Pig.h | 2 +- Minecraft.World/Entities/Mobs/PigZombie.h | 2 +- Minecraft.World/Entities/Mobs/Sheep.cpp | 2 +- Minecraft.World/Entities/Mobs/Sheep.h | 2 +- Minecraft.World/Entities/Mobs/Skeleton.h | 2 +- Minecraft.World/Entities/Mobs/Slime.h | 2 +- Minecraft.World/Entities/Mobs/Snowball.h | 2 +- Minecraft.World/Entities/Mobs/Spider.h | 2 +- Minecraft.World/Entities/Mobs/Squid.cpp | 2 +- Minecraft.World/Entities/Mobs/Squid.h | 2 +- Minecraft.World/Entities/Mobs/ThrownEgg.h | 2 +- Minecraft.World/Entities/Mobs/Wolf.h | 2 +- Minecraft.World/Entities/Mobs/Zombie.h | 2 +- Minecraft.World/Entities/Monster.h | 2 +- Minecraft.World/Entities/SyncedEntityData.h | 2 +- .../Headers/net.minecraft.world.inventory.ContainerListener.h | 2 +- Minecraft.World/IO/Files/ConsoleSavePath.h | 2 +- Minecraft.World/IO/Files/File.h | 2 +- Minecraft.World/IO/Files/FileHeader.h | 2 +- Minecraft.World/IO/Files/FilenameFilter.h | 2 +- Minecraft.World/IO/NBT/ListTag.h | 2 +- Minecraft.World/IO/NBT/Tag.h | 2 +- Minecraft.World/IO/Streams/InputStream.h | 2 +- Minecraft.World/Items/CoalItem.cpp | 2 +- Minecraft.World/Items/CoalItem.h | 2 +- Minecraft.World/Items/ComplexItem.h | 2 +- Minecraft.World/Items/DoorItem.cpp | 2 +- Minecraft.World/Items/DoorItem.h | 2 +- Minecraft.World/Items/DyePowderItem.cpp | 2 +- Minecraft.World/Items/DyePowderItem.h | 2 +- Minecraft.World/Items/EggItem.cpp | 2 +- Minecraft.World/Items/EggItem.h | 2 +- Minecraft.World/Items/FishingRodItem.h | 2 +- Minecraft.World/Items/HoeItem.h | 2 +- Minecraft.World/Items/Item.h | 2 +- Minecraft.World/Items/ItemInstance.h | 2 +- Minecraft.World/Items/MapItem.h | 2 +- Minecraft.World/Items/MinecartItem.h | 2 +- Minecraft.World/Items/PotionItem.h | 2 +- Minecraft.World/Items/RecordingItem.h | 2 +- Minecraft.World/Items/RedstoneItem.h | 2 +- Minecraft.World/Items/SaddleItem.h | 2 +- Minecraft.World/Items/SeedItem.cpp | 2 +- Minecraft.World/Items/SeedItem.h | 2 +- Minecraft.World/Items/ShearsItem.h | 2 +- Minecraft.World/Items/SignItem.h | 2 +- Minecraft.World/Items/SnowballItem.h | 2 +- Minecraft.World/Items/TileItems/ClothTileItem.h | 2 +- Minecraft.World/Items/TileItems/LeafTileItem.h | 2 +- Minecraft.World/Items/TileItems/PistonTileItem.h | 2 +- Minecraft.World/Items/TileItems/PlanterTileItem.h | 2 +- Minecraft.World/Items/TileItems/SaplingTileItem.h | 2 +- Minecraft.World/Items/TileItems/SmoothStoneBrickTileItem.h | 2 +- Minecraft.World/Items/TileItems/StoneMonsterTileItem.h | 2 +- Minecraft.World/Items/TileItems/StoneSlabTileItem.h | 2 +- Minecraft.World/Items/TileItems/TileItem.cpp | 2 +- Minecraft.World/Items/TileItems/TileItem.h | 2 +- Minecraft.World/Items/TileItems/TreeTileItem.h | 2 +- Minecraft.World/Items/WeaponItem.h | 2 +- Minecraft.World/Level/CustomLevelSource.h | 2 +- Minecraft.World/Level/Events/LevelListener.h | 2 +- Minecraft.World/Level/Level.h | 2 +- Minecraft.World/Level/LevelChunk.h | 2 +- Minecraft.World/Level/LevelConflictException.h | 2 +- Minecraft.World/Level/LevelData.h | 2 +- Minecraft.World/Level/RandomLevelSource.h | 2 +- Minecraft.World/Level/Storage/DirectoryLevelStorage.h | 2 +- Minecraft.World/Level/Storage/DirectoryLevelStorageSource.h | 2 +- Minecraft.World/Level/Storage/EntityIO.h | 2 +- Minecraft.World/Level/Storage/LevelStorage.h | 2 +- Minecraft.World/Level/Storage/LevelStorageProfilerDecorator.h | 2 +- Minecraft.World/Level/Storage/LevelStorageSource.h | 2 +- Minecraft.World/Level/Storage/LevelSummary.h | 2 +- Minecraft.World/Level/Storage/LevelType.h | 2 +- Minecraft.World/Level/Storage/McRegionChunkStorage.h | 2 +- Minecraft.World/Level/Storage/McRegionLevelStorage.h | 2 +- Minecraft.World/Level/Storage/McRegionLevelStorageSource.h | 2 +- Minecraft.World/Level/Storage/MemoryChunkStorage.h | 2 +- Minecraft.World/Level/Storage/MemoryLevelStorage.h | 2 +- Minecraft.World/Level/Storage/MemoryLevelStorageSource.h | 2 +- Minecraft.World/Level/Storage/MockedLevelStorage.h | 2 +- Minecraft.World/Level/Storage/PlayerIO.h | 2 +- Minecraft.World/Level/Storage/RegionFile.h | 2 +- Minecraft.World/Level/Storage/SavedData.h | 2 +- Minecraft.World/Level/Storage/SavedDataStorage.h | 2 +- Minecraft.World/Level/Storage/ZonedChunkStorage.h | 2 +- Minecraft.World/Network/Connection.h | 2 +- Minecraft.World/Network/Packets/AddEntityPacket.h | 2 +- Minecraft.World/Network/Packets/AddMobPacket.h | 2 +- Minecraft.World/Network/Packets/AddPaintingPacket.h | 2 +- Minecraft.World/Network/Packets/AddPlayerPacket.h | 2 +- Minecraft.World/Network/Packets/AnimatePacket.h | 2 +- Minecraft.World/Network/Packets/AwardStatPacket.h | 2 +- Minecraft.World/Network/Packets/BlockRegionUpdatePacket.h | 2 +- Minecraft.World/Network/Packets/ChatPacket.h | 2 +- Minecraft.World/Network/Packets/ChunkTilesUpdatePacket.h | 2 +- Minecraft.World/Network/Packets/ChunkVisibilityAreaPacket.h | 2 +- Minecraft.World/Network/Packets/ChunkVisibilityPacket.h | 2 +- Minecraft.World/Network/Packets/ComplexItemDataPacket.h | 2 +- Minecraft.World/Network/Packets/ContainerAckPacket.h | 2 +- Minecraft.World/Network/Packets/ContainerClickPacket.h | 2 +- Minecraft.World/Network/Packets/ContainerClosePacket.h | 2 +- Minecraft.World/Network/Packets/ContainerOpenPacket.h | 2 +- Minecraft.World/Network/Packets/ContainerSetContentPacket.h | 2 +- Minecraft.World/Network/Packets/ContainerSetDataPacket.h | 2 +- Minecraft.World/Network/Packets/ContainerSetSlotPacket.h | 2 +- Minecraft.World/Network/Packets/CraftItemPacket.h | 2 +- Minecraft.World/Network/Packets/CustomPayloadPacket.h | 2 +- Minecraft.World/Network/Packets/DebugOptionsPacket.h | 2 +- Minecraft.World/Network/Packets/DisconnectPacket.h | 2 +- .../Network/Packets/EntityActionAtPositionPacket.h | 2 +- Minecraft.World/Network/Packets/EntityEventPacket.h | 2 +- Minecraft.World/Network/Packets/ExplodePacket.h | 2 +- Minecraft.World/Network/Packets/GameCommandPacket.h | 2 +- Minecraft.World/Network/Packets/GameEventPacket.h | 2 +- Minecraft.World/Network/Packets/InteractPacket.h | 2 +- Minecraft.World/Network/Packets/KeepAlivePacket.h | 2 +- Minecraft.World/Network/Packets/KickPlayerPacket.h | 2 +- Minecraft.World/Network/Packets/LevelEventPacket.h | 2 +- Minecraft.World/Network/Packets/LoginPacket.h | 2 +- Minecraft.World/Network/Packets/MoveEntityPacket.h | 2 +- Minecraft.World/Network/Packets/MoveEntityPacketSmall.h | 2 +- Minecraft.World/Network/Packets/MovePlayerPacket.h | 2 +- Minecraft.World/Network/Packets/Packet.h | 2 +- Minecraft.World/Network/Packets/PacketListener.h | 2 +- Minecraft.World/Network/Packets/PlayerActionPacket.h | 2 +- Minecraft.World/Network/Packets/PlayerCommandPacket.h | 2 +- Minecraft.World/Network/Packets/PlayerInfoPacket.h | 2 +- Minecraft.World/Network/Packets/PlayerInputPacket.h | 2 +- Minecraft.World/Network/Packets/PreLoginPacket.h | 2 +- Minecraft.World/Network/Packets/RemoveEntitiesPacket.h | 2 +- Minecraft.World/Network/Packets/RespawnPacket.h | 2 +- Minecraft.World/Network/Packets/ServerSettingsChangedPacket.h | 2 +- Minecraft.World/Network/Packets/SetCarriedItemPacket.h | 2 +- Minecraft.World/Network/Packets/SetEntityDataPacket.h | 2 +- Minecraft.World/Network/Packets/SetEntityMotionPacket.h | 2 +- Minecraft.World/Network/Packets/SetEquippedItemPacket.h | 2 +- Minecraft.World/Network/Packets/SetHealthPacket.h | 2 +- Minecraft.World/Network/Packets/SetRidingPacket.h | 2 +- Minecraft.World/Network/Packets/SetSpawnPositionPacket.h | 2 +- Minecraft.World/Network/Packets/SetTimePacket.h | 2 +- Minecraft.World/Network/Packets/SignUpdatePacket.h | 2 +- Minecraft.World/Network/Packets/TakeItemEntityPacket.h | 2 +- Minecraft.World/Network/Packets/TeleportEntityPacket.h | 2 +- .../Network/Packets/TextureAndGeometryChangePacket.h | 2 +- Minecraft.World/Network/Packets/TextureAndGeometryPacket.h | 2 +- Minecraft.World/Network/Packets/TextureChangePacket.h | 2 +- Minecraft.World/Network/Packets/TexturePacket.h | 2 +- Minecraft.World/Network/Packets/TileEntityDataPacket.h | 2 +- Minecraft.World/Network/Packets/TileEventPacket.h | 2 +- Minecraft.World/Network/Packets/TileUpdatePacket.h | 2 +- Minecraft.World/Network/Packets/TradeItemPacket.h | 2 +- .../Network/Packets/UpdateGameRuleProgressPacket.h | 2 +- Minecraft.World/Network/Packets/UpdateProgressPacket.h | 2 +- Minecraft.World/Network/Packets/UseItemPacket.h | 2 +- Minecraft.World/Network/Packets/XZPacket.h | 2 +- Minecraft.World/Player/Player.h | 2 +- Minecraft.World/Recipes/Recipes.h | 2 +- Minecraft.World/Stats/Achievement.h | 2 +- Minecraft.World/Stats/Achievements.h | 2 +- Minecraft.World/Stats/GeneralStat.h | 2 +- Minecraft.World/Stats/ItemStat.h | 2 +- Minecraft.World/Stats/Stat.h | 2 +- Minecraft.World/Stats/StatFormatter.h | 2 +- Minecraft.World/Stats/Stats.h | 2 +- Minecraft.World/Util/AABB.h | 2 +- Minecraft.World/Util/Arrays.h | 2 +- Minecraft.World/Util/BinaryHeap.h | 2 +- Minecraft.World/Util/Class.h | 2 +- Minecraft.World/Util/DamageSource.h | 2 +- Minecraft.World/Util/Definitions.h | 2 +- Minecraft.World/Util/DescFormatter.h | 2 +- Minecraft.World/Util/Exceptions.h | 2 +- Minecraft.World/Util/FlippedIcon.h | 2 +- Minecraft.World/Util/HashExtension.h | 2 +- Minecraft.World/Util/Hasher.h | 2 +- Minecraft.World/Util/I18n.h | 2 +- Minecraft.World/Util/Icon.h | 2 +- Minecraft.World/Util/IconRegister.h | 2 +- Minecraft.World/Util/NumberFormatters.h | 2 +- Minecraft.World/Util/ProgressListener.h | 2 +- Minecraft.World/Util/SharedConstants.h | 2 +- Minecraft.World/Util/StringHelpers.h | 2 +- Minecraft.World/Util/Vec3.h | 2 +- Minecraft.World/WorldGen/Biomes/Biome.h | 2 +- Minecraft.World/WorldGen/Features/CaveFeature.cpp | 2 +- Minecraft.World/WorldGen/Sources/FlatLevelSource.h | 2 +- 319 files changed, 321 insertions(+), 321 deletions(-) diff --git a/Minecraft.Client/ClientConstants.h b/Minecraft.Client/ClientConstants.h index 62f4e8883..8533f59f4 100644 --- a/Minecraft.Client/ClientConstants.h +++ b/Minecraft.Client/ClientConstants.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class ClientConstants { diff --git a/Minecraft.Client/GameState/Options.h b/Minecraft.Client/GameState/Options.h index 56e4a82bc..b9d2d4928 100644 --- a/Minecraft.Client/GameState/Options.h +++ b/Minecraft.Client/GameState/Options.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Minecraft; class KeyMapping; #include "../../Minecraft.World/IO/Files/File.h" diff --git a/Minecraft.Client/GameState/Settings.h b/Minecraft.Client/GameState/Settings.h index fb634cbfe..8ead97244 100644 --- a/Minecraft.Client/GameState/Settings.h +++ b/Minecraft.Client/GameState/Settings.h @@ -1,6 +1,6 @@ #pragma once class File; -using namespace std; + class Settings { diff --git a/Minecraft.Client/GameState/StatsCounter.h b/Minecraft.Client/GameState/StatsCounter.h index d3e74b23a..4963d3ab8 100644 --- a/Minecraft.Client/GameState/StatsCounter.h +++ b/Minecraft.Client/GameState/StatsCounter.h @@ -3,7 +3,7 @@ class Stat; class Achievement; class StatsSyncher; class User; -using namespace std; + class StatsCounter { diff --git a/Minecraft.Client/GameState/StatsSyncer.h b/Minecraft.Client/GameState/StatsSyncer.h index 1fadfa71b..0742acc3d 100644 --- a/Minecraft.Client/GameState/StatsSyncer.h +++ b/Minecraft.Client/GameState/StatsSyncer.h @@ -4,7 +4,7 @@ class StatsCounter; class User; class File; class Stat; -using namespace std; + class StatsSyncher { diff --git a/Minecraft.Client/Input/ConsoleInput.h b/Minecraft.Client/Input/ConsoleInput.h index 3b8a91eae..db228631a 100644 --- a/Minecraft.Client/Input/ConsoleInput.h +++ b/Minecraft.Client/Input/ConsoleInput.h @@ -1,6 +1,6 @@ #pragma once #include "ConsoleInputSource.h" -using namespace std; + class ConsoleInput { diff --git a/Minecraft.Client/Input/KeyMapping.h b/Minecraft.Client/Input/KeyMapping.h index 68aff9f0d..85ac8d211 100644 --- a/Minecraft.Client/Input/KeyMapping.h +++ b/Minecraft.Client/Input/KeyMapping.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + // 4J Stu - Not updated to 1.8.2 as we don't use this class KeyMapping { diff --git a/Minecraft.Client/Level/MultiPlayerLevel.h b/Minecraft.Client/Level/MultiPlayerLevel.h index 78c99747b..ac6ed0812 100644 --- a/Minecraft.Client/Level/MultiPlayerLevel.h +++ b/Minecraft.Client/Level/MultiPlayerLevel.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Minecraft.World/Util/HashExtension.h" #include "../../Minecraft.World/Headers/net.minecraft.world.level.h" #include "../../Minecraft.World/Headers/net.minecraft.world.entity.h" @@ -8,7 +8,7 @@ using namespace std; class ClientConnection; class MultiPlayerChunkCache; -using namespace std; + class MultiPlayerLevel : public Level { diff --git a/Minecraft.Client/Level/ServerLevel.h b/Minecraft.Client/Level/ServerLevel.h index 3d9a0f780..f0ff99247 100644 --- a/Minecraft.Client/Level/ServerLevel.h +++ b/Minecraft.Client/Level/ServerLevel.h @@ -6,7 +6,7 @@ class MinecraftServer; class Node; class EntityTracker; class PlayerChunkMap; -using namespace std; + class ServerLevel : public Level { diff --git a/Minecraft.Client/Minecraft.h b/Minecraft.Client/Minecraft.h index dfc3be494..0d071fa3f 100644 --- a/Minecraft.Client/Minecraft.h +++ b/Minecraft.Client/Minecraft.h @@ -46,7 +46,7 @@ class PsPlusUpsellWrapper; #undef linux #endif -using namespace std; + class Minecraft { diff --git a/Minecraft.Client/MinecraftServer.h b/Minecraft.Client/MinecraftServer.h index 9a9ec08c1..ced9a6c9e 100644 --- a/Minecraft.Client/MinecraftServer.h +++ b/Minecraft.Client/MinecraftServer.h @@ -54,7 +54,7 @@ typedef struct _NetworkGameInitData } } NetworkGameInitData; -using namespace std; + // 4J Stu - 1.0.1 updates the server to implement the ServerInterface class, but I don't think we will use any of the functions that defines so not implementing here class MinecraftServer : public ConsoleInputSource diff --git a/Minecraft.Client/Network/MultiPlayerChunkCache.h b/Minecraft.Client/Network/MultiPlayerChunkCache.h index e49255b06..a9df81eac 100644 --- a/Minecraft.Client/Network/MultiPlayerChunkCache.h +++ b/Minecraft.Client/Network/MultiPlayerChunkCache.h @@ -3,7 +3,7 @@ #include "../../Minecraft.World/Headers/net.minecraft.world.level.chunk.h" #include "../../Minecraft.World/Level/RandomLevelSource.h" -using namespace std; + class ServerChunkCache; // 4J - various alterations here to make this thread safe, and operate as a fixed sized cache diff --git a/Minecraft.Client/Network/PendingConnection.h b/Minecraft.Client/Network/PendingConnection.h index 50e9b35d5..1f79508ff 100644 --- a/Minecraft.Client/Network/PendingConnection.h +++ b/Minecraft.Client/Network/PendingConnection.h @@ -5,7 +5,7 @@ class Socket; class LoginPacket; class Connection; class Random; -using namespace std; + class PendingConnection : public PacketListener { diff --git a/Minecraft.Client/Network/PlayerChunkMap.h b/Minecraft.Client/Network/PlayerChunkMap.h index d9efdb2c6..9c9df9f0f 100644 --- a/Minecraft.Client/Network/PlayerChunkMap.h +++ b/Minecraft.Client/Network/PlayerChunkMap.h @@ -6,7 +6,7 @@ class ServerLevel; class MinecraftServer; class Packet; class TileEntity; -using namespace std; + class PlayerChunkMap { diff --git a/Minecraft.Client/Network/PlayerConnection.h b/Minecraft.Client/Network/PlayerConnection.h index c0e94d37f..ae8ec4881 100644 --- a/Minecraft.Client/Network/PlayerConnection.h +++ b/Minecraft.Client/Network/PlayerConnection.h @@ -8,7 +8,7 @@ class Connection; class ServerPlayer; class INetworkPlayer; -using namespace std; + class PlayerConnection : public PacketListener, public ConsoleInputSource { diff --git a/Minecraft.Client/Network/PlayerInfo.h b/Minecraft.Client/Network/PlayerInfo.h index 280c9126f..ba0f3413c 100644 --- a/Minecraft.Client/Network/PlayerInfo.h +++ b/Minecraft.Client/Network/PlayerInfo.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class PlayerInfo { diff --git a/Minecraft.Client/Network/PlayerList.h b/Minecraft.Client/Network/PlayerList.h index 495adf16b..6712a62d3 100644 --- a/Minecraft.Client/Network/PlayerList.h +++ b/Minecraft.Client/Network/PlayerList.h @@ -14,7 +14,7 @@ class ProgressListener; class GameType; class LoginPacket; -using namespace std; + class PlayerList { diff --git a/Minecraft.Client/Network/ServerChunkCache.h b/Minecraft.Client/Network/ServerChunkCache.h index 5490502bf..d5c5a8e2a 100644 --- a/Minecraft.Client/Network/ServerChunkCache.h +++ b/Minecraft.Client/Network/ServerChunkCache.h @@ -5,7 +5,7 @@ #include "../../Minecraft.World/Util/JavaIntHash.h" #include "../../Minecraft.World/Level/RandomLevelSource.h" #include "../../Minecraft.World/Util/C4JThread.h" -using namespace std; + class ServerLevel; class ServerChunkCache : public ChunkSource diff --git a/Minecraft.Client/Network/ServerConnection.h b/Minecraft.Client/Network/ServerConnection.h index 9243abf1e..501315756 100644 --- a/Minecraft.Client/Network/ServerConnection.h +++ b/Minecraft.Client/Network/ServerConnection.h @@ -5,7 +5,7 @@ class MinecraftServer; class Socket; class ServerSettingsChangedPacket; -using namespace std; + class ServerConnection { diff --git a/Minecraft.Client/Network/ServerInterface.h b/Minecraft.Client/Network/ServerInterface.h index 9f0988c94..883b2106d 100644 --- a/Minecraft.Client/Network/ServerInterface.h +++ b/Minecraft.Client/Network/ServerInterface.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class ServerInterface { diff --git a/Minecraft.Client/Platform/Durango/4JLibs/inc/4J_Storage.h b/Minecraft.Client/Platform/Durango/4JLibs/inc/4J_Storage.h index 68fb8bc47..4d97a6eac 100644 --- a/Minecraft.Client/Platform/Durango/4JLibs/inc/4J_Storage.h +++ b/Minecraft.Client/Platform/Durango/4JLibs/inc/4J_Storage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #define MAX_DISPLAYNAME_LENGTH 128 // SCE_SAVE_DATA_SUBTITLE_MAXSIZE on PS4 #define MAX_SAVEFILENAME_LENGTH 32 // SCE_SAVE_DATA_DIRNAME_DATA_MAXSIZE diff --git a/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager.h b/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager.h index abcb9518f..0f9ddc45f 100644 --- a/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager.h +++ b/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager.h @@ -21,7 +21,7 @@ namespace WFC = Windows::Foundation::Collections; #define MATCH_SESSION_TEMPLATE_NAME L"PeerToHostTemplate" #define MAX_PLAYERS_IN_TEMPLATE 8 -using namespace std; + ref class DQRNetworkManagerEventHandlers sealed { diff --git a/Minecraft.Client/Platform/Durango/Network/PlatformNetworkManagerDurango.h b/Minecraft.Client/Platform/Durango/Network/PlatformNetworkManagerDurango.h index fa9216a68..87301283f 100644 --- a/Minecraft.Client/Platform/Durango/Network/PlatformNetworkManagerDurango.h +++ b/Minecraft.Client/Platform/Durango/Network/PlatformNetworkManagerDurango.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include #include "../../../../Minecraft.World/Util/C4JThread.h" #include "../../../Build/Common/Network/NetworkPlayerInterface.h" diff --git a/Minecraft.Client/Platform/Orbis/4JLibs/inc/4J_Storage.h b/Minecraft.Client/Platform/Orbis/4JLibs/inc/4J_Storage.h index 230b540b8..c62e4948d 100644 --- a/Minecraft.Client/Platform/Orbis/4JLibs/inc/4J_Storage.h +++ b/Minecraft.Client/Platform/Orbis/4JLibs/inc/4J_Storage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include diff --git a/Minecraft.Client/Platform/PS3/4JLibs/inc/4J_Storage.h b/Minecraft.Client/Platform/PS3/4JLibs/inc/4J_Storage.h index 3950bbad6..c827a8688 100644 --- a/Minecraft.Client/Platform/PS3/4JLibs/inc/4J_Storage.h +++ b/Minecraft.Client/Platform/PS3/4JLibs/inc/4J_Storage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include #include #include diff --git a/Minecraft.Client/Platform/PS3/Leaderboards/PS3LeaderboardManager.h b/Minecraft.Client/Platform/PS3/Leaderboards/PS3LeaderboardManager.h index 3b109ac95..737a9d9c7 100644 --- a/Minecraft.Client/Platform/PS3/Leaderboards/PS3LeaderboardManager.h +++ b/Minecraft.Client/Platform/PS3/Leaderboards/PS3LeaderboardManager.h @@ -5,7 +5,7 @@ #include "../Passphrase/ps3__np_conf.h" -using namespace std; + class PS3LeaderboardManager : public LeaderboardManager { diff --git a/Minecraft.Client/Platform/PS3/SPU_Tasks/ChunkUpdate/Tile_SPU.h b/Minecraft.Client/Platform/PS3/SPU_Tasks/ChunkUpdate/Tile_SPU.h index b11dd5fc2..938ebb07f 100644 --- a/Minecraft.Client/Platform/PS3/SPU_Tasks/ChunkUpdate/Tile_SPU.h +++ b/Minecraft.Client/Platform/PS3/SPU_Tasks/ChunkUpdate/Tile_SPU.h @@ -3,7 +3,7 @@ // #include "../../../../../Minecraft.World/Util/Vec3.h" // #include "../../../../../Minecraft.World/Util/Definitions.h" // #include "../../../../../Minecraft.World/Util/SoundTypes.h" -// using namespace std; +// #include "Icon_SPU.h" #include "Material_SPU.h" #include diff --git a/Minecraft.Client/Platform/PSVita/4JLibs/inc/4J_Storage.h b/Minecraft.Client/Platform/PSVita/4JLibs/inc/4J_Storage.h index c8d7d4b5a..3a1e7a029 100644 --- a/Minecraft.Client/Platform/PSVita/4JLibs/inc/4J_Storage.h +++ b/Minecraft.Client/Platform/PSVita/4JLibs/inc/4J_Storage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include diff --git a/Minecraft.Client/Platform/Xbox/4JLibs/inc/4J_Storage.h b/Minecraft.Client/Platform/Xbox/4JLibs/inc/4J_Storage.h index 9bdcf2c2e..284d093c2 100644 --- a/Minecraft.Client/Platform/Xbox/4JLibs/inc/4J_Storage.h +++ b/Minecraft.Client/Platform/Xbox/4JLibs/inc/4J_Storage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include diff --git a/Minecraft.Client/Platform/Xbox/Audio/SoundEngine.h b/Minecraft.Client/Platform/Xbox/Audio/SoundEngine.h index e0f5d6c7a..06cc8119d 100644 --- a/Minecraft.Client/Platform/Xbox/Audio/SoundEngine.h +++ b/Minecraft.Client/Platform/Xbox/Audio/SoundEngine.h @@ -1,7 +1,7 @@ #pragma once class Mob; class Options; -using namespace std; + #include "../../../../Minecraft.World/Util/SoundTypes.h" #ifdef _XBOX diff --git a/Minecraft.Client/Platform/Xbox/Font/XUI_FontData.h b/Minecraft.Client/Platform/Xbox/Font/XUI_FontData.h index 1268ac0bd..d09b1f7ac 100644 --- a/Minecraft.Client/Platform/Xbox/Font/XUI_FontData.h +++ b/Minecraft.Client/Platform/Xbox/Font/XUI_FontData.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include #include "../../../Build/Common/UI/UIFontData.h" diff --git a/Minecraft.Client/Platform/Xbox/Font/XUI_FontRenderer.h b/Minecraft.Client/Platform/Xbox/Font/XUI_FontRenderer.h index 5f3e80494..9ca088ffc 100644 --- a/Minecraft.Client/Platform/Xbox/Font/XUI_FontRenderer.h +++ b/Minecraft.Client/Platform/Xbox/Font/XUI_FontRenderer.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class XUI_FontData; class XUI_Font; diff --git a/Minecraft.Client/Platform/Xbox/Network/PlatformNetworkManagerXbox.h b/Minecraft.Client/Platform/Xbox/Network/PlatformNetworkManagerXbox.h index 969ca1459..b8da250bb 100644 --- a/Minecraft.Client/Platform/Xbox/Network/PlatformNetworkManagerXbox.h +++ b/Minecraft.Client/Platform/Xbox/Network/PlatformNetworkManagerXbox.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include #include #include "../../../../Minecraft.World/Util/C4JThread.h" diff --git a/Minecraft.Client/Player/EntityTracker.h b/Minecraft.Client/Player/EntityTracker.h index a98f20ad8..d3d9a32fe 100644 --- a/Minecraft.Client/Player/EntityTracker.h +++ b/Minecraft.Client/Player/EntityTracker.h @@ -7,7 +7,7 @@ class TrackedEntity; class MinecraftServer; class Packet; -using namespace std; + class EntityTracker { diff --git a/Minecraft.Client/Player/LocalPlayer.h b/Minecraft.Client/Player/LocalPlayer.h index e9948b7d9..3a70bd4b6 100644 --- a/Minecraft.Client/Player/LocalPlayer.h +++ b/Minecraft.Client/Player/LocalPlayer.h @@ -13,7 +13,7 @@ class Input; class Stat; class Minecraft; -using namespace std; + // Time in seconds before the players presence is update to Idle #define PLAYER_IDLE_TIME 300 diff --git a/Minecraft.Client/Player/ServerPlayer.h b/Minecraft.Client/Player/ServerPlayer.h index bb2ad5b74..5027bf197 100644 --- a/Minecraft.Client/Player/ServerPlayer.h +++ b/Minecraft.Client/Player/ServerPlayer.h @@ -11,7 +11,7 @@ class TileEntity; class Entity; class BrewingStandTileEntity; class Merchant; -using namespace std; + class ServerPlayer : public Player, public net_minecraft_world_inventory::ContainerListener { diff --git a/Minecraft.Client/Player/TrackedEntity.h b/Minecraft.Client/Player/TrackedEntity.h index 805cbf167..70df9da3e 100644 --- a/Minecraft.Client/Player/TrackedEntity.h +++ b/Minecraft.Client/Player/TrackedEntity.h @@ -3,7 +3,7 @@ class Entity; //class ServerPlayer; #include "ServerPlayer.h" class Packet; -using namespace std; + class EntityTracker; diff --git a/Minecraft.Client/Player/User.h b/Minecraft.Client/Player/User.h index 7ee722eed..7650b7cc2 100644 --- a/Minecraft.Client/Player/User.h +++ b/Minecraft.Client/Player/User.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class User { diff --git a/Minecraft.Client/Rendering/Chunk.h b/Minecraft.Client/Rendering/Chunk.h index c3231bb94..787fae4de 100644 --- a/Minecraft.Client/Rendering/Chunk.h +++ b/Minecraft.Client/Rendering/Chunk.h @@ -7,7 +7,7 @@ class Level; class TileEntity; class Entity; -using namespace std; + class ClipChunk { diff --git a/Minecraft.Client/Rendering/EntityRenderers/EntityRenderDispatcher.h b/Minecraft.Client/Rendering/EntityRenderers/EntityRenderDispatcher.h index eb443cee7..92ac51da6 100644 --- a/Minecraft.Client/Rendering/EntityRenderers/EntityRenderDispatcher.h +++ b/Minecraft.Client/Rendering/EntityRenderers/EntityRenderDispatcher.h @@ -3,7 +3,7 @@ #include "../../../Minecraft.World/Entities/Entity.h" #include "../../../Minecraft.World/Util/JavaIntHash.h" class font; -using namespace std; + class EntityRenderDispatcher { diff --git a/Minecraft.Client/Rendering/EntityRenderers/EntityRenderer.h b/Minecraft.Client/Rendering/EntityRenderers/EntityRenderer.h index 2095385b6..4337d84d1 100644 --- a/Minecraft.Client/Rendering/EntityRenderers/EntityRenderer.h +++ b/Minecraft.Client/Rendering/EntityRenderers/EntityRenderer.h @@ -11,7 +11,7 @@ class Level; class AABB; class IconRegister; -using namespace std; + class EntityRenderDispatcher; class Font; diff --git a/Minecraft.Client/Rendering/EntityRenderers/MobRenderer.h b/Minecraft.Client/Rendering/EntityRenderers/MobRenderer.h index 1f5c01b7f..7cefa63e7 100644 --- a/Minecraft.Client/Rendering/EntityRenderers/MobRenderer.h +++ b/Minecraft.Client/Rendering/EntityRenderers/MobRenderer.h @@ -1,7 +1,7 @@ #pragma once #include "EntityRenderer.h" class Mob; -using namespace std; + #define PLAYER_NAME_READABLE_FULLSCREEN 16 #define PLAYER_NAME_READABLE_DISTANCE_SPLITSCREEN 8 diff --git a/Minecraft.Client/Rendering/EntityRenderers/MobSpawnerRenderer.h b/Minecraft.Client/Rendering/EntityRenderers/MobSpawnerRenderer.h index 1ca51db47..1b6b6109e 100644 --- a/Minecraft.Client/Rendering/EntityRenderers/MobSpawnerRenderer.h +++ b/Minecraft.Client/Rendering/EntityRenderers/MobSpawnerRenderer.h @@ -1,6 +1,6 @@ #pragma once #include "TileEntityRenderer.h" -using namespace std; + class MobSpawnerRenderer : public TileEntityRenderer { diff --git a/Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.h b/Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.h index 292a2f693..b47d36238 100644 --- a/Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.h +++ b/Minecraft.Client/Rendering/EntityRenderers/PlayerRenderer.h @@ -2,7 +2,7 @@ #include "MobRenderer.h" #include "../../../Minecraft.World/Player/Player.h" class HumanoidModel; -using namespace std; + class PlayerRenderer : public MobRenderer { diff --git a/Minecraft.Client/Rendering/LevelRenderer.h b/Minecraft.Client/Rendering/LevelRenderer.h index ab8a1fe40..32941711d 100644 --- a/Minecraft.Client/Rendering/LevelRenderer.h +++ b/Minecraft.Client/Rendering/LevelRenderer.h @@ -24,7 +24,7 @@ class Particle; class BlockDestructionProgress; class IconRegister; class Tesselator; -using namespace std; + // AP - this is a system that works out which chunks actually need to be grouped together via the deferral system when doing chunk::rebuild. Doing this will reduce the number // of chunks built in a single group and reduce the chance of seeing through the landscape when digging near the edges/corners of a chunk. diff --git a/Minecraft.Client/Rendering/Models/Model.h b/Minecraft.Client/Rendering/Models/Model.h index 431ba5cde..104e6ce27 100644 --- a/Minecraft.Client/Rendering/Models/Model.h +++ b/Minecraft.Client/Rendering/Models/Model.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../../Minecraft.World/Util/Random.h" #include "SkinBox.h" class Mob; diff --git a/Minecraft.Client/Rendering/Particles/GuiParticles.h b/Minecraft.Client/Rendering/Particles/GuiParticles.h index 73ef7eee4..82be7ec60 100644 --- a/Minecraft.Client/Rendering/Particles/GuiParticles.h +++ b/Minecraft.Client/Rendering/Particles/GuiParticles.h @@ -3,7 +3,7 @@ class GuiParticle; class Minecraft; -using namespace std; + class GuiParticles : public GuiComponent { diff --git a/Minecraft.Client/Rendering/Particles/Particle.h b/Minecraft.Client/Rendering/Particles/Particle.h index 572794401..e2202c14c 100644 --- a/Minecraft.Client/Rendering/Particles/Particle.h +++ b/Minecraft.Client/Rendering/Particles/Particle.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../../Minecraft.World/Entities/Entity.h" #include "../../../Minecraft.World/Util/ParticleTypes.h" diff --git a/Minecraft.Client/Rendering/Particles/ParticleEngine.h b/Minecraft.Client/Rendering/Particles/ParticleEngine.h index 8913d3140..6af085fea 100644 --- a/Minecraft.Client/Rendering/Particles/ParticleEngine.h +++ b/Minecraft.Client/Rendering/Particles/ParticleEngine.h @@ -1,12 +1,12 @@ #pragma once -using namespace std; + class Particle; class Level; class Textures; class Entity; class Random; -using namespace std; + class ParticleEngine { diff --git a/Minecraft.Client/Textures/BufferedImage.h b/Minecraft.Client/Textures/BufferedImage.h index 428ff29c8..026c457a7 100644 --- a/Minecraft.Client/Textures/BufferedImage.h +++ b/Minecraft.Client/Textures/BufferedImage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Graphics; class DLCPack; diff --git a/Minecraft.Client/Textures/HttpTexture.h b/Minecraft.Client/Textures/HttpTexture.h index b123e1c57..3c87cd8f0 100644 --- a/Minecraft.Client/Textures/HttpTexture.h +++ b/Minecraft.Client/Textures/HttpTexture.h @@ -1,7 +1,7 @@ #pragma once class BufferedImage; class HttpTextureProcessor; -using namespace std; + class HttpTexture { public: diff --git a/Minecraft.Client/Textures/MemTexture.h b/Minecraft.Client/Textures/MemTexture.h index e08c1bbb5..e3f6b6bf7 100644 --- a/Minecraft.Client/Textures/MemTexture.h +++ b/Minecraft.Client/Textures/MemTexture.h @@ -1,7 +1,7 @@ #pragma once class BufferedImage; class MemTextureProcessor; -using namespace std; + class MemTexture { public: diff --git a/Minecraft.Client/Textures/Packs/AbstractTexturePack.h b/Minecraft.Client/Textures/Packs/AbstractTexturePack.h index 9bccba975..c861a88c0 100644 --- a/Minecraft.Client/Textures/Packs/AbstractTexturePack.h +++ b/Minecraft.Client/Textures/Packs/AbstractTexturePack.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TexturePack.h" diff --git a/Minecraft.Client/Textures/Packs/FileTexturePack.h b/Minecraft.Client/Textures/Packs/FileTexturePack.h index 082f4444b..6a7be75fe 100644 --- a/Minecraft.Client/Textures/Packs/FileTexturePack.h +++ b/Minecraft.Client/Textures/Packs/FileTexturePack.h @@ -4,7 +4,7 @@ class BufferedImage; class File; class Textures; -using namespace std; + class FileTexturePack : public AbstractTexturePack { diff --git a/Minecraft.Client/Textures/Packs/TexturePack.h b/Minecraft.Client/Textures/Packs/TexturePack.h index ee2a9af3b..0145c72d9 100644 --- a/Minecraft.Client/Textures/Packs/TexturePack.h +++ b/Minecraft.Client/Textures/Packs/TexturePack.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Build/Common/App_enums.h" diff --git a/Minecraft.Client/Textures/Packs/TexturePackRepository.h b/Minecraft.Client/Textures/Packs/TexturePackRepository.h index a397e39bc..d8c672235 100644 --- a/Minecraft.Client/Textures/Packs/TexturePackRepository.h +++ b/Minecraft.Client/Textures/Packs/TexturePackRepository.h @@ -1,6 +1,6 @@ #pragma once #include "TexturePack.h" -using namespace std; + class Minecraft; diff --git a/Minecraft.Client/Textures/Stitching/PreStitchedTextureMap.h b/Minecraft.Client/Textures/Stitching/PreStitchedTextureMap.h index 96e9c90ba..f86cfac7f 100644 --- a/Minecraft.Client/Textures/Stitching/PreStitchedTextureMap.h +++ b/Minecraft.Client/Textures/Stitching/PreStitchedTextureMap.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../../Minecraft.World/Util/IconRegister.h" diff --git a/Minecraft.Client/Textures/Stitching/StitchSlot.h b/Minecraft.Client/Textures/Stitching/StitchSlot.h index 0814d5f44..a1a7dc832 100644 --- a/Minecraft.Client/Textures/Stitching/StitchSlot.h +++ b/Minecraft.Client/Textures/Stitching/StitchSlot.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class TextureHolder; diff --git a/Minecraft.Client/Textures/Stitching/StitchedTexture.h b/Minecraft.Client/Textures/Stitching/StitchedTexture.h index a1bdaa8fa..d1bbf29aa 100644 --- a/Minecraft.Client/Textures/Stitching/StitchedTexture.h +++ b/Minecraft.Client/Textures/Stitching/StitchedTexture.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../../Minecraft.World/Util/Icon.h" class Texture; diff --git a/Minecraft.Client/Textures/Stitching/Stitcher.h b/Minecraft.Client/Textures/Stitching/Stitcher.h index 806e0d300..985bf866c 100644 --- a/Minecraft.Client/Textures/Stitching/Stitcher.h +++ b/Minecraft.Client/Textures/Stitching/Stitcher.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class StitchSlot; class Texture; diff --git a/Minecraft.Client/Textures/Stitching/TextureMap.h b/Minecraft.Client/Textures/Stitching/TextureMap.h index 03d1fc306..af13345ef 100644 --- a/Minecraft.Client/Textures/Stitching/TextureMap.h +++ b/Minecraft.Client/Textures/Stitching/TextureMap.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../../Minecraft.World/Util/IconRegister.h" diff --git a/Minecraft.Client/Textures/Textures.h b/Minecraft.Client/Textures/Textures.h index 9f4e83e63..a96947384 100644 --- a/Minecraft.Client/Textures/Textures.h +++ b/Minecraft.Client/Textures/Textures.h @@ -9,7 +9,7 @@ class TexturePackRepository; class HttpTextureProcessor; class MemTextureProcessor; class Options; -using namespace std; + class IntBuffer; class PreStitchedTextureMap; diff --git a/Minecraft.Client/UI/Button.h b/Minecraft.Client/UI/Button.h index b7409e003..aac43cda4 100644 --- a/Minecraft.Client/UI/Button.h +++ b/Minecraft.Client/UI/Button.h @@ -1,6 +1,6 @@ #pragma once #include "GuiComponent.h" -using namespace std; + class Button : public GuiComponent { diff --git a/Minecraft.Client/UI/EditBox.h b/Minecraft.Client/UI/EditBox.h index 6c59a61f3..d0f2e8614 100644 --- a/Minecraft.Client/UI/EditBox.h +++ b/Minecraft.Client/UI/EditBox.h @@ -1,6 +1,6 @@ #pragma once #include "GuiComponent.h" -using namespace std; + class Font; class Screen; diff --git a/Minecraft.Client/UI/GuiComponent.h b/Minecraft.Client/UI/GuiComponent.h index 5819b5eaf..71324d0e3 100644 --- a/Minecraft.Client/UI/GuiComponent.h +++ b/Minecraft.Client/UI/GuiComponent.h @@ -1,6 +1,6 @@ #pragma once class Font; -using namespace std; + class GuiComponent { diff --git a/Minecraft.Client/UI/GuiMessage.h b/Minecraft.Client/UI/GuiMessage.h index 6fee65f39..ad1403084 100644 --- a/Minecraft.Client/UI/GuiMessage.h +++ b/Minecraft.Client/UI/GuiMessage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class GuiMessage { diff --git a/Minecraft.Client/UI/Screen.h b/Minecraft.Client/UI/Screen.h index 554671f49..169b49f33 100644 --- a/Minecraft.Client/UI/Screen.h +++ b/Minecraft.Client/UI/Screen.h @@ -3,7 +3,7 @@ class Button; class GuiParticles; class Minecraft; -using namespace std; + class Screen : public GuiComponent { diff --git a/Minecraft.Client/UI/Screens/AchievementPopup.h b/Minecraft.Client/UI/Screens/AchievementPopup.h index 5d7b04663..7b66eae19 100644 --- a/Minecraft.Client/UI/Screens/AchievementPopup.h +++ b/Minecraft.Client/UI/Screens/AchievementPopup.h @@ -2,7 +2,7 @@ #include "../GuiComponent.h" class Achievement; class ItemRenderer; -using namespace std; + class AchievementPopup : public GuiComponent { diff --git a/Minecraft.Client/UI/Screens/ChatScreen.h b/Minecraft.Client/UI/Screens/ChatScreen.h index b0e471cf7..43879f3e4 100644 --- a/Minecraft.Client/UI/Screens/ChatScreen.h +++ b/Minecraft.Client/UI/Screens/ChatScreen.h @@ -1,6 +1,6 @@ #pragma once #include "../Screen.h" -using namespace std; + class ChatScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/ConfirmScreen.h b/Minecraft.Client/UI/Screens/ConfirmScreen.h index d4dcdaec0..8fb349d8c 100644 --- a/Minecraft.Client/UI/Screens/ConfirmScreen.h +++ b/Minecraft.Client/UI/Screens/ConfirmScreen.h @@ -1,6 +1,6 @@ #pragma once #include "../Screen.h" -using namespace std; + class ConfirmScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/ConnectScreen.h b/Minecraft.Client/UI/Screens/ConnectScreen.h index 1de5b2f06..3d8504e2c 100644 --- a/Minecraft.Client/UI/Screens/ConnectScreen.h +++ b/Minecraft.Client/UI/Screens/ConnectScreen.h @@ -3,7 +3,7 @@ class ClientConnection; class Minecraft; -using namespace std; + class ConnectScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/ControlsScreen.h b/Minecraft.Client/UI/Screens/ControlsScreen.h index 07778abdc..39959a90e 100644 --- a/Minecraft.Client/UI/Screens/ControlsScreen.h +++ b/Minecraft.Client/UI/Screens/ControlsScreen.h @@ -1,6 +1,6 @@ #pragma once #include "../Screen.h" -using namespace std; + class Options; class ControlsScreen : public Screen diff --git a/Minecraft.Client/UI/Screens/CreateWorldScreen.h b/Minecraft.Client/UI/Screens/CreateWorldScreen.h index 3b3ded4f2..96ca5b113 100644 --- a/Minecraft.Client/UI/Screens/CreateWorldScreen.h +++ b/Minecraft.Client/UI/Screens/CreateWorldScreen.h @@ -2,7 +2,7 @@ #include "../Screen.h" class EditBox; class LevelStorageSource; -using namespace std; + class CreateWorldScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/DisconnectedScreen.h b/Minecraft.Client/UI/Screens/DisconnectedScreen.h index d949656b9..158bef0df 100644 --- a/Minecraft.Client/UI/Screens/DisconnectedScreen.h +++ b/Minecraft.Client/UI/Screens/DisconnectedScreen.h @@ -1,6 +1,6 @@ #pragma once #include "../Screen.h" -using namespace std; + class DisconnectedScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/OptionsScreen.h b/Minecraft.Client/UI/Screens/OptionsScreen.h index ed412bd8d..94ebd823b 100644 --- a/Minecraft.Client/UI/Screens/OptionsScreen.h +++ b/Minecraft.Client/UI/Screens/OptionsScreen.h @@ -1,7 +1,7 @@ #pragma once #include "../Screen.h" class Options; -using namespace std; + class OptionsScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/RenameWorldScreen.h b/Minecraft.Client/UI/Screens/RenameWorldScreen.h index 8aef6b83e..80d2d4303 100644 --- a/Minecraft.Client/UI/Screens/RenameWorldScreen.h +++ b/Minecraft.Client/UI/Screens/RenameWorldScreen.h @@ -2,7 +2,7 @@ #include "../Screen.h" class Button; class EditBox; -using namespace std; + class RenameWorldScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/TextEditScreen.h b/Minecraft.Client/UI/Screens/TextEditScreen.h index da1636f90..40cf24e18 100644 --- a/Minecraft.Client/UI/Screens/TextEditScreen.h +++ b/Minecraft.Client/UI/Screens/TextEditScreen.h @@ -1,7 +1,7 @@ #pragma once #include "../Screen.h" class SignTileEntity; -using namespace std; + class TextEditScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/TitleScreen.h b/Minecraft.Client/UI/Screens/TitleScreen.h index 9829ae504..c65a3650c 100644 --- a/Minecraft.Client/UI/Screens/TitleScreen.h +++ b/Minecraft.Client/UI/Screens/TitleScreen.h @@ -2,7 +2,7 @@ #include "../Screen.h" class Random; class Button; -using namespace std; + class TitleScreen : public Screen { diff --git a/Minecraft.Client/UI/Screens/VideoSettingsScreen.h b/Minecraft.Client/UI/Screens/VideoSettingsScreen.h index 7570c0014..414f484c3 100644 --- a/Minecraft.Client/UI/Screens/VideoSettingsScreen.h +++ b/Minecraft.Client/UI/Screens/VideoSettingsScreen.h @@ -1,7 +1,7 @@ #pragma once #include "../Screen.h" class Options; -using namespace std; + class VideoSettingsScreen : public Screen { diff --git a/Minecraft.Client/UI/SimpleIcon.h b/Minecraft.Client/UI/SimpleIcon.h index f75a6081a..18f7c15e4 100644 --- a/Minecraft.Client/UI/SimpleIcon.h +++ b/Minecraft.Client/UI/SimpleIcon.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Textures/Stitching/StitchedTexture.h" diff --git a/Minecraft.Client/Utils/ArchiveFile.h b/Minecraft.Client/Utils/ArchiveFile.h index 5b6a7bf3c..83ca6b160 100644 --- a/Minecraft.Client/Utils/ArchiveFile.h +++ b/Minecraft.Client/Utils/ArchiveFile.h @@ -6,7 +6,7 @@ #include "../../Minecraft.World/IO/Files/File.h" #include "../../Minecraft.World/Util/ArrayWithLength.h" -using namespace std; + class ArchiveFile { diff --git a/Minecraft.Client/Utils/MemoryTracker.h b/Minecraft.Client/Utils/MemoryTracker.h index a6b7b4db2..8bf103be5 100644 --- a/Minecraft.Client/Utils/MemoryTracker.h +++ b/Minecraft.Client/Utils/MemoryTracker.h @@ -3,7 +3,7 @@ class ByteBuffer; class IntBuffer; class FloatBuffer; -using namespace std; + /** Original comment * This class is used so we can release all memory (allocated on the graphics card on shutdown) diff --git a/Minecraft.Client/Utils/StringTable.h b/Minecraft.Client/Utils/StringTable.h index 23bddd8e5..4e55afe76 100644 --- a/Minecraft.Client/Utils/StringTable.h +++ b/Minecraft.Client/Utils/StringTable.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #if defined(__PS3__) || defined(__ORBIS__) || defined __PSVITA__ #define LOCALE_COUNT 21 diff --git a/Minecraft.Client/Utils/WstringLookup.h b/Minecraft.Client/Utils/WstringLookup.h index 9146ac5ae..a5247bc3f 100644 --- a/Minecraft.Client/Utils/WstringLookup.h +++ b/Minecraft.Client/Utils/WstringLookup.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + class WstringLookup { diff --git a/Minecraft.World/AI/Goals/GoalSelector.h b/Minecraft.World/AI/Goals/GoalSelector.h index 3dfdc1e3e..f4724f56e 100644 --- a/Minecraft.World/AI/Goals/GoalSelector.h +++ b/Minecraft.World/AI/Goals/GoalSelector.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Goal; diff --git a/Minecraft.World/AI/Navigation/Node.h b/Minecraft.World/AI/Navigation/Node.h index f85be5331..5a3a8c27e 100644 --- a/Minecraft.World/AI/Navigation/Node.h +++ b/Minecraft.World/AI/Navigation/Node.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Node { diff --git a/Minecraft.World/AI/Navigation/PathFinder.h b/Minecraft.World/AI/Navigation/PathFinder.h index 119e8afa0..2978ac360 100644 --- a/Minecraft.World/AI/Navigation/PathFinder.h +++ b/Minecraft.World/AI/Navigation/PathFinder.h @@ -1,6 +1,6 @@ #pragma once #include "../../Util/JavaIntHash.h" -using namespace std; + class LevelSource; diff --git a/Minecraft.World/Blocks/NotGateTile.h b/Minecraft.World/Blocks/NotGateTile.h index 12d46f704..a3f107cdb 100644 --- a/Minecraft.World/Blocks/NotGateTile.h +++ b/Minecraft.World/Blocks/NotGateTile.h @@ -1,6 +1,6 @@ #pragma once #include "TorchTile.h" -using namespace std; + class Random; diff --git a/Minecraft.World/Blocks/RailTile.h b/Minecraft.World/Blocks/RailTile.h index bfbc46a13..e428aa110 100644 --- a/Minecraft.World/Blocks/RailTile.h +++ b/Minecraft.World/Blocks/RailTile.h @@ -7,7 +7,7 @@ class Random; class HitResult; class ChunkRebuildData; -using namespace std; + class RailTile : public Tile { diff --git a/Minecraft.World/Blocks/RedStoneDustTile.h b/Minecraft.World/Blocks/RedStoneDustTile.h index 236907f67..9b55bfafd 100644 --- a/Minecraft.World/Blocks/RedStoneDustTile.h +++ b/Minecraft.World/Blocks/RedStoneDustTile.h @@ -1,7 +1,7 @@ #pragma once #include "Tile.h" #include "../Util/Definitions.h" -using namespace std; + class Random; class Level; diff --git a/Minecraft.World/Blocks/ReedTile.h b/Minecraft.World/Blocks/ReedTile.h index 62ab21a68..cb8b6e5cf 100644 --- a/Minecraft.World/Blocks/ReedTile.h +++ b/Minecraft.World/Blocks/ReedTile.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Tile.h" #include "../Util/Definitions.h" diff --git a/Minecraft.World/Blocks/SandStoneTile.h b/Minecraft.World/Blocks/SandStoneTile.h index 247d15339..21c40cafd 100644 --- a/Minecraft.World/Blocks/SandStoneTile.h +++ b/Minecraft.World/Blocks/SandStoneTile.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Tile.h" diff --git a/Minecraft.World/Blocks/StoneSlabTile.h b/Minecraft.World/Blocks/StoneSlabTile.h index 42972c402..d6a928647 100644 --- a/Minecraft.World/Blocks/StoneSlabTile.h +++ b/Minecraft.World/Blocks/StoneSlabTile.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "HalfSlabTile.h" diff --git a/Minecraft.World/Blocks/Tile.h b/Minecraft.World/Blocks/Tile.h index 08a1f6b61..de71490c4 100644 --- a/Minecraft.World/Blocks/Tile.h +++ b/Minecraft.World/Blocks/Tile.h @@ -3,7 +3,7 @@ #include "../Util/Vec3.h" #include "../Util/Definitions.h" #include "../Util/SoundTypes.h" -using namespace std; + class GrassTile; class LeafTile; diff --git a/Minecraft.World/Blocks/TileEntities/ChestTileEntity.cpp b/Minecraft.World/Blocks/TileEntities/ChestTileEntity.cpp index 9bd14b10e..5f99d5c1c 100644 --- a/Minecraft.World/Blocks/TileEntities/ChestTileEntity.cpp +++ b/Minecraft.World/Blocks/TileEntities/ChestTileEntity.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../../Build/stdafx.h" #include "../../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Blocks/TileEntities/ChestTileEntity.h b/Minecraft.World/Blocks/TileEntities/ChestTileEntity.h index 2198f1e32..d6ef1b8b3 100644 --- a/Minecraft.World/Blocks/TileEntities/ChestTileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/ChestTileEntity.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "TileEntity.h" #include "../../Containers/Container.h" diff --git a/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.cpp b/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.cpp index 3012212e2..434fd25e3 100644 --- a/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.cpp +++ b/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../../Build/stdafx.h" #include "../../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.h b/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.h index 077090a6a..6e72e09b8 100644 --- a/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/DispenserTileEntity.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "../../Headers/com.mojang.nbt.h" #include "TileEntity.h" diff --git a/Minecraft.World/Blocks/TileEntities/FurnaceTileEntity.h b/Minecraft.World/Blocks/TileEntities/FurnaceTileEntity.h index 2bfdbe318..0c0a2f086 100644 --- a/Minecraft.World/Blocks/TileEntities/FurnaceTileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/FurnaceTileEntity.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../FurnaceTile.h" #include "TileEntity.h" diff --git a/Minecraft.World/Blocks/TileEntities/MobSpawnerTileEntity.h b/Minecraft.World/Blocks/TileEntities/MobSpawnerTileEntity.h index 88aae9314..8b0b0ec5d 100644 --- a/Minecraft.World/Blocks/TileEntities/MobSpawnerTileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/MobSpawnerTileEntity.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileEntity.h" diff --git a/Minecraft.World/Blocks/TileEntities/MusicTileEntity.h b/Minecraft.World/Blocks/TileEntities/MusicTileEntity.h index a83731c5a..4aad80f46 100644 --- a/Minecraft.World/Blocks/TileEntities/MusicTileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/MusicTileEntity.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileEntity.h" diff --git a/Minecraft.World/Blocks/TileEntities/PotionBrewing.h b/Minecraft.World/Blocks/TileEntities/PotionBrewing.h index ad85ec62c..0dfb21487 100644 --- a/Minecraft.World/Blocks/TileEntities/PotionBrewing.h +++ b/Minecraft.World/Blocks/TileEntities/PotionBrewing.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class MobEffectInstance; class PotionBrewing diff --git a/Minecraft.World/Blocks/TileEntities/SignTileEntity.h b/Minecraft.World/Blocks/TileEntities/SignTileEntity.h index 6329c6eca..6325180b6 100644 --- a/Minecraft.World/Blocks/TileEntities/SignTileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/SignTileEntity.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileEntity.h" diff --git a/Minecraft.World/Blocks/TileEntities/TileEntity.h b/Minecraft.World/Blocks/TileEntities/TileEntity.h index 70cd8abd9..b57d5fc94 100644 --- a/Minecraft.World/Blocks/TileEntities/TileEntity.h +++ b/Minecraft.World/Blocks/TileEntities/TileEntity.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Util/HashExtension.h" #include "../../Util/JavaIntHash.h" diff --git a/Minecraft.World/Build/System.h b/Minecraft.World/Build/System.h index 9a1909286..5fc24dd51 100644 --- a/Minecraft.World/Build/System.h +++ b/Minecraft.World/Build/System.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Util/ArrayWithLength.h" diff --git a/Minecraft.World/Build/x64headers/extraX64.h b/Minecraft.World/Build/x64headers/extraX64.h index 94609ce19..0dac12ca6 100644 --- a/Minecraft.World/Build/x64headers/extraX64.h +++ b/Minecraft.World/Build/x64headers/extraX64.h @@ -83,7 +83,7 @@ typedef struct _XUIDC* HXUIDC; bool IsEqualXUID(PlayerUID a, PlayerUID b); -using namespace std; + // Temporary implementation of lock free stack with quite a bit more locking than you might expect template class XLockFreeStack diff --git a/Minecraft.World/Containers/AbstractContainerMenu.h b/Minecraft.World/Containers/AbstractContainerMenu.h index 306a895ee..79ea26d11 100644 --- a/Minecraft.World/Containers/AbstractContainerMenu.h +++ b/Minecraft.World/Containers/AbstractContainerMenu.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Player/Player.h" #include "../Headers/net.minecraft.world.inventory.ContainerListener.h" diff --git a/Minecraft.World/Containers/CompoundContainer.h b/Minecraft.World/Containers/CompoundContainer.h index 1103f0008..466dc4b82 100644 --- a/Minecraft.World/Containers/CompoundContainer.h +++ b/Minecraft.World/Containers/CompoundContainer.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Container.h" diff --git a/Minecraft.World/Containers/Container.h b/Minecraft.World/Containers/Container.h index 8939cd01d..46444696f 100644 --- a/Minecraft.World/Containers/Container.h +++ b/Minecraft.World/Containers/Container.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class ItemInstance; class Player; diff --git a/Minecraft.World/Containers/CraftingContainer.h b/Minecraft.World/Containers/CraftingContainer.h index d09d460ad..5ef82ea20 100644 --- a/Minecraft.World/Containers/CraftingContainer.h +++ b/Minecraft.World/Containers/CraftingContainer.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Container.h" class AbstractContainerMenu; diff --git a/Minecraft.World/Containers/Inventory.h b/Minecraft.World/Containers/Inventory.h index 2460ff249..f03afa9c0 100644 --- a/Minecraft.World/Containers/Inventory.h +++ b/Minecraft.World/Containers/Inventory.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Container.h" #include "../IO/NBT/ListTag.h" #include "../Items/ItemInstance.h" diff --git a/Minecraft.World/Containers/SimpleContainer.h b/Minecraft.World/Containers/SimpleContainer.h index 071f0c7c1..fd5af13e0 100644 --- a/Minecraft.World/Containers/SimpleContainer.h +++ b/Minecraft.World/Containers/SimpleContainer.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Container.h" #include "../Headers/net.minecraft.world.ContainerListener.h" diff --git a/Minecraft.World/Entities/BossMobPart.h b/Minecraft.World/Entities/BossMobPart.h index cf003507f..3ed92112a 100644 --- a/Minecraft.World/Entities/BossMobPart.h +++ b/Minecraft.World/Entities/BossMobPart.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Entity.h" class Level; diff --git a/Minecraft.World/Entities/Entity.h b/Minecraft.World/Entities/Entity.h index 69d669ae9..db771b1b3 100644 --- a/Minecraft.World/Entities/Entity.h +++ b/Minecraft.World/Entities/Entity.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../IO/NBT/ListTag.h" #include "../IO/NBT/DoubleTag.h" #include "../IO/NBT/FloatTag.h" diff --git a/Minecraft.World/Entities/EntityDamageSource.h b/Minecraft.World/Entities/EntityDamageSource.h index e1d11598d..745bc4268 100644 --- a/Minecraft.World/Entities/EntityDamageSource.h +++ b/Minecraft.World/Entities/EntityDamageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Util/DamageSource.h" diff --git a/Minecraft.World/Entities/IndirectEntityDamageSource.h b/Minecraft.World/Entities/IndirectEntityDamageSource.h index 2c3094799..83c461171 100644 --- a/Minecraft.World/Entities/IndirectEntityDamageSource.h +++ b/Minecraft.World/Entities/IndirectEntityDamageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "EntityDamageSource.h" diff --git a/Minecraft.World/Entities/Mob.h b/Minecraft.World/Entities/Mob.h index 9d1ef8b8b..b47c3f264 100644 --- a/Minecraft.World/Entities/Mob.h +++ b/Minecraft.World/Entities/Mob.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Entity.h" #include "MobType.h" diff --git a/Minecraft.World/Entities/MobCategory.h b/Minecraft.World/Entities/MobCategory.h index b2f70f862..8649970d0 100644 --- a/Minecraft.World/Entities/MobCategory.h +++ b/Minecraft.World/Entities/MobCategory.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Material; diff --git a/Minecraft.World/Entities/MobEffect.h b/Minecraft.World/Entities/MobEffect.h index 7f42234eb..6c5ae44ff 100644 --- a/Minecraft.World/Entities/MobEffect.h +++ b/Minecraft.World/Entities/MobEffect.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Mob; class MobEffectInstance; diff --git a/Minecraft.World/Entities/Mobs/Arrow.h b/Minecraft.World/Entities/Mobs/Arrow.h index dd29d67cf..c8f168492 100644 --- a/Minecraft.World/Entities/Mobs/Arrow.h +++ b/Minecraft.World/Entities/Mobs/Arrow.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entity.h" diff --git a/Minecraft.World/Entities/Mobs/Boat.h b/Minecraft.World/Entities/Mobs/Boat.h index b4d147d37..f0bc81959 100644 --- a/Minecraft.World/Entities/Mobs/Boat.h +++ b/Minecraft.World/Entities/Mobs/Boat.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entity.h" diff --git a/Minecraft.World/Entities/Mobs/Chicken.h b/Minecraft.World/Entities/Mobs/Chicken.h index c0d18dbb5..49b4e368f 100644 --- a/Minecraft.World/Entities/Mobs/Chicken.h +++ b/Minecraft.World/Entities/Mobs/Chicken.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Animal.h" diff --git a/Minecraft.World/Entities/Mobs/Cow.h b/Minecraft.World/Entities/Mobs/Cow.h index e721f8302..bd718ee4a 100644 --- a/Minecraft.World/Entities/Mobs/Cow.h +++ b/Minecraft.World/Entities/Mobs/Cow.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "Animal.h" diff --git a/Minecraft.World/Entities/Mobs/Creeper.h b/Minecraft.World/Entities/Mobs/Creeper.h index fe7028045..7da061984 100644 --- a/Minecraft.World/Entities/Mobs/Creeper.h +++ b/Minecraft.World/Entities/Mobs/Creeper.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Monster.h" diff --git a/Minecraft.World/Entities/Mobs/EnderDragon.h b/Minecraft.World/Entities/Mobs/EnderDragon.h index 1575e3fe6..6de06ff2a 100644 --- a/Minecraft.World/Entities/Mobs/EnderDragon.h +++ b/Minecraft.World/Entities/Mobs/EnderDragon.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "BossMob.h" class BossMobPart; diff --git a/Minecraft.World/Entities/Mobs/Fireball.h b/Minecraft.World/Entities/Mobs/Fireball.h index 32e55d7b3..3d6e274d8 100644 --- a/Minecraft.World/Entities/Mobs/Fireball.h +++ b/Minecraft.World/Entities/Mobs/Fireball.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entity.h" #include "../../Util/ParticleTypes.h" diff --git a/Minecraft.World/Entities/Mobs/FishingHook.h b/Minecraft.World/Entities/Mobs/FishingHook.h index cb74cf8ed..d5c9a428a 100644 --- a/Minecraft.World/Entities/Mobs/FishingHook.h +++ b/Minecraft.World/Entities/Mobs/FishingHook.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entity.h" diff --git a/Minecraft.World/Entities/Mobs/Ghast.h b/Minecraft.World/Entities/Mobs/Ghast.h index 9602e7272..9371572c1 100644 --- a/Minecraft.World/Entities/Mobs/Ghast.h +++ b/Minecraft.World/Entities/Mobs/Ghast.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../FlyingMob.h" #include "../Enemy.h" diff --git a/Minecraft.World/Entities/Mobs/Giant.h b/Minecraft.World/Entities/Mobs/Giant.h index 4b979af23..6743e616f 100644 --- a/Minecraft.World/Entities/Mobs/Giant.h +++ b/Minecraft.World/Entities/Mobs/Giant.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Monster.h" diff --git a/Minecraft.World/Entities/Mobs/ItemFrame.h b/Minecraft.World/Entities/Mobs/ItemFrame.h index 13a2b1e45..6b4519aef 100644 --- a/Minecraft.World/Entities/Mobs/ItemFrame.h +++ b/Minecraft.World/Entities/Mobs/ItemFrame.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entity.h" #include "../HangingEntity.h" diff --git a/Minecraft.World/Entities/Mobs/LightningBolt.h b/Minecraft.World/Entities/Mobs/LightningBolt.h index f160ab88c..9868cfb0e 100644 --- a/Minecraft.World/Entities/Mobs/LightningBolt.h +++ b/Minecraft.World/Entities/Mobs/LightningBolt.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../GlobalEntity.h" #include "../../Headers/net.minecraft.world.level.tile.h" diff --git a/Minecraft.World/Entities/Mobs/Painting.h b/Minecraft.World/Entities/Mobs/Painting.h index 7ce1e60ef..7954b580c 100644 --- a/Minecraft.World/Entities/Mobs/Painting.h +++ b/Minecraft.World/Entities/Mobs/Painting.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entity.h" #include "../HangingEntity.h" diff --git a/Minecraft.World/Entities/Mobs/Pig.h b/Minecraft.World/Entities/Mobs/Pig.h index 34695b745..9bf64348d 100644 --- a/Minecraft.World/Entities/Mobs/Pig.h +++ b/Minecraft.World/Entities/Mobs/Pig.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "Animal.h" diff --git a/Minecraft.World/Entities/Mobs/PigZombie.h b/Minecraft.World/Entities/Mobs/PigZombie.h index ad792d65f..796c6ad9a 100644 --- a/Minecraft.World/Entities/Mobs/PigZombie.h +++ b/Minecraft.World/Entities/Mobs/PigZombie.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Zombie.h" diff --git a/Minecraft.World/Entities/Mobs/Sheep.cpp b/Minecraft.World/Entities/Mobs/Sheep.cpp index 98ecdf6da..18beaab97 100644 --- a/Minecraft.World/Entities/Mobs/Sheep.cpp +++ b/Minecraft.World/Entities/Mobs/Sheep.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../../Build/stdafx.h" #include "../../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Entities/Mobs/Sheep.h b/Minecraft.World/Entities/Mobs/Sheep.h index 53ab85cfb..819d32e7b 100644 --- a/Minecraft.World/Entities/Mobs/Sheep.h +++ b/Minecraft.World/Entities/Mobs/Sheep.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + class Random; class EatTileGoal; diff --git a/Minecraft.World/Entities/Mobs/Skeleton.h b/Minecraft.World/Entities/Mobs/Skeleton.h index db9a69785..faf1e41ce 100644 --- a/Minecraft.World/Entities/Mobs/Skeleton.h +++ b/Minecraft.World/Entities/Mobs/Skeleton.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Monster.h" diff --git a/Minecraft.World/Entities/Mobs/Slime.h b/Minecraft.World/Entities/Mobs/Slime.h index 2a892b083..5b2bebd83 100644 --- a/Minecraft.World/Entities/Mobs/Slime.h +++ b/Minecraft.World/Entities/Mobs/Slime.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Mob.h" #include "../Enemy.h" diff --git a/Minecraft.World/Entities/Mobs/Snowball.h b/Minecraft.World/Entities/Mobs/Snowball.h index b17691b29..145fb780d 100644 --- a/Minecraft.World/Entities/Mobs/Snowball.h +++ b/Minecraft.World/Entities/Mobs/Snowball.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Throwable.h" diff --git a/Minecraft.World/Entities/Mobs/Spider.h b/Minecraft.World/Entities/Mobs/Spider.h index 576cc9f57..13722f888 100644 --- a/Minecraft.World/Entities/Mobs/Spider.h +++ b/Minecraft.World/Entities/Mobs/Spider.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Monster.h" diff --git a/Minecraft.World/Entities/Mobs/Squid.cpp b/Minecraft.World/Entities/Mobs/Squid.cpp index e2433aa37..2cf8bf54b 100644 --- a/Minecraft.World/Entities/Mobs/Squid.cpp +++ b/Minecraft.World/Entities/Mobs/Squid.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../../Build/stdafx.h" #include "../../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Entities/Mobs/Squid.h b/Minecraft.World/Entities/Mobs/Squid.h index f8ee5c131..2cf6d14f9 100644 --- a/Minecraft.World/Entities/Mobs/Squid.h +++ b/Minecraft.World/Entities/Mobs/Squid.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "../WaterAnimal.h" diff --git a/Minecraft.World/Entities/Mobs/ThrownEgg.h b/Minecraft.World/Entities/Mobs/ThrownEgg.h index 15ef3d69e..830f9eae8 100644 --- a/Minecraft.World/Entities/Mobs/ThrownEgg.h +++ b/Minecraft.World/Entities/Mobs/ThrownEgg.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Throwable.h" diff --git a/Minecraft.World/Entities/Mobs/Wolf.h b/Minecraft.World/Entities/Mobs/Wolf.h index c8fbf6c97..b6b3e5528 100644 --- a/Minecraft.World/Entities/Mobs/Wolf.h +++ b/Minecraft.World/Entities/Mobs/Wolf.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "../TamableAnimal.h" class DamageSource; diff --git a/Minecraft.World/Entities/Mobs/Zombie.h b/Minecraft.World/Entities/Mobs/Zombie.h index 58ae1459d..be6de5169 100644 --- a/Minecraft.World/Entities/Mobs/Zombie.h +++ b/Minecraft.World/Entities/Mobs/Zombie.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Monster.h" #include "../../Util/SharedConstants.h" diff --git a/Minecraft.World/Entities/Monster.h b/Minecraft.World/Entities/Monster.h index 804760ee4..7129913bf 100644 --- a/Minecraft.World/Entities/Monster.h +++ b/Minecraft.World/Entities/Monster.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "PathfinderMob.h" #include "Enemy.h" diff --git a/Minecraft.World/Entities/SyncedEntityData.h b/Minecraft.World/Entities/SyncedEntityData.h index da6385427..7726b60b0 100644 --- a/Minecraft.World/Entities/SyncedEntityData.h +++ b/Minecraft.World/Entities/SyncedEntityData.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Pos; diff --git a/Minecraft.World/Headers/net.minecraft.world.inventory.ContainerListener.h b/Minecraft.World/Headers/net.minecraft.world.inventory.ContainerListener.h index b66a307df..b6908d624 100644 --- a/Minecraft.World/Headers/net.minecraft.world.inventory.ContainerListener.h +++ b/Minecraft.World/Headers/net.minecraft.world.inventory.ContainerListener.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class AbstractContainerMenu; // 4J Stu diff --git a/Minecraft.World/IO/Files/ConsoleSavePath.h b/Minecraft.World/IO/Files/ConsoleSavePath.h index 1c91ca14d..99f9837e0 100644 --- a/Minecraft.World/IO/Files/ConsoleSavePath.h +++ b/Minecraft.World/IO/Files/ConsoleSavePath.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class ConsoleSavePath { diff --git a/Minecraft.World/IO/Files/File.h b/Minecraft.World/IO/Files/File.h index 9a5c59f56..b36dcbae4 100644 --- a/Minecraft.World/IO/Files/File.h +++ b/Minecraft.World/IO/Files/File.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + // 4J Stu - Represents java standard library class class FileFilter; diff --git a/Minecraft.World/IO/Files/FileHeader.h b/Minecraft.World/IO/Files/FileHeader.h index f5d14038c..1ad6cfd6c 100644 --- a/Minecraft.World/IO/Files/FileHeader.h +++ b/Minecraft.World/IO/Files/FileHeader.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Build/System.h" diff --git a/Minecraft.World/IO/Files/FilenameFilter.h b/Minecraft.World/IO/Files/FilenameFilter.h index 1f0339b5d..f37677f1f 100644 --- a/Minecraft.World/IO/Files/FilenameFilter.h +++ b/Minecraft.World/IO/Files/FilenameFilter.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Build/stdafx.h" diff --git a/Minecraft.World/IO/NBT/ListTag.h b/Minecraft.World/IO/NBT/ListTag.h index e7a44ab28..b78f194de 100644 --- a/Minecraft.World/IO/NBT/ListTag.h +++ b/Minecraft.World/IO/NBT/ListTag.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Tag.h" template class ListTag : public Tag diff --git a/Minecraft.World/IO/NBT/Tag.h b/Minecraft.World/IO/NBT/Tag.h index 86b31b0d0..dc4ab7306 100644 --- a/Minecraft.World/IO/NBT/Tag.h +++ b/Minecraft.World/IO/NBT/Tag.h @@ -1,7 +1,7 @@ #pragma once #include #include "../Streams/InputOutputStream.h" -using namespace std; + class Tag diff --git a/Minecraft.World/IO/Streams/InputStream.h b/Minecraft.World/IO/Streams/InputStream.h index 477d52df8..642b2c174 100644 --- a/Minecraft.World/IO/Streams/InputStream.h +++ b/Minecraft.World/IO/Streams/InputStream.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + // 4J Stu - Represents Java standard lib abstract class InputStream diff --git a/Minecraft.World/Items/CoalItem.cpp b/Minecraft.World/Items/CoalItem.cpp index f206df499..16f3ba169 100644 --- a/Minecraft.World/Items/CoalItem.cpp +++ b/Minecraft.World/Items/CoalItem.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../Build/stdafx.h" #include "../Headers/net.minecraft.world.item.h" diff --git a/Minecraft.World/Items/CoalItem.h b/Minecraft.World/Items/CoalItem.h index 70c2acb74..ae3eda905 100644 --- a/Minecraft.World/Items/CoalItem.h +++ b/Minecraft.World/Items/CoalItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/ComplexItem.h b/Minecraft.World/Items/ComplexItem.h index 036781a4a..4657274f5 100644 --- a/Minecraft.World/Items/ComplexItem.h +++ b/Minecraft.World/Items/ComplexItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/DoorItem.cpp b/Minecraft.World/Items/DoorItem.cpp index 2e217a66c..f873e6ddd 100644 --- a/Minecraft.World/Items/DoorItem.cpp +++ b/Minecraft.World/Items/DoorItem.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../Build/stdafx.h" #include "../Headers/net.minecraft.world.h" diff --git a/Minecraft.World/Items/DoorItem.h b/Minecraft.World/Items/DoorItem.h index 635d8148c..e3588280b 100644 --- a/Minecraft.World/Items/DoorItem.h +++ b/Minecraft.World/Items/DoorItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/DyePowderItem.cpp b/Minecraft.World/Items/DyePowderItem.cpp index 0251593fb..a24fda545 100644 --- a/Minecraft.World/Items/DyePowderItem.cpp +++ b/Minecraft.World/Items/DyePowderItem.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../Build/stdafx.h" #include "../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Items/DyePowderItem.h b/Minecraft.World/Items/DyePowderItem.h index 694960663..f016a1e94 100644 --- a/Minecraft.World/Items/DyePowderItem.h +++ b/Minecraft.World/Items/DyePowderItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/EggItem.cpp b/Minecraft.World/Items/EggItem.cpp index 4a47cf489..0442da4ff 100644 --- a/Minecraft.World/Items/EggItem.cpp +++ b/Minecraft.World/Items/EggItem.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../Build/stdafx.h" #include "../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Items/EggItem.h b/Minecraft.World/Items/EggItem.h index a5763a5e3..aa1a5d4ab 100644 --- a/Minecraft.World/Items/EggItem.h +++ b/Minecraft.World/Items/EggItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/FishingRodItem.h b/Minecraft.World/Items/FishingRodItem.h index 2d16d6b1e..4d6ce184e 100644 --- a/Minecraft.World/Items/FishingRodItem.h +++ b/Minecraft.World/Items/FishingRodItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/HoeItem.h b/Minecraft.World/Items/HoeItem.h index e353d6cb6..b7405803d 100644 --- a/Minecraft.World/Items/HoeItem.h +++ b/Minecraft.World/Items/HoeItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/Item.h b/Minecraft.World/Items/Item.h index e3d94b459..eb041fed0 100644 --- a/Minecraft.World/Items/Item.h +++ b/Minecraft.World/Items/Item.h @@ -1,6 +1,6 @@ #pragma once -using namespace std; + #include "../Containers/Container.h" #include "../Util/UseAnim.h" diff --git a/Minecraft.World/Items/ItemInstance.h b/Minecraft.World/Items/ItemInstance.h index 755dfc4c9..465ee1ec0 100644 --- a/Minecraft.World/Items/ItemInstance.h +++ b/Minecraft.World/Items/ItemInstance.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Util/UseAnim.h" #include "../Headers/com.mojang.nbt.h" diff --git a/Minecraft.World/Items/MapItem.h b/Minecraft.World/Items/MapItem.h index ddeb0b5eb..80aa857b9 100644 --- a/Minecraft.World/Items/MapItem.h +++ b/Minecraft.World/Items/MapItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "ComplexItem.h" diff --git a/Minecraft.World/Items/MinecartItem.h b/Minecraft.World/Items/MinecartItem.h index 4566ed9af..d097fd5c4 100644 --- a/Minecraft.World/Items/MinecartItem.h +++ b/Minecraft.World/Items/MinecartItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/PotionItem.h b/Minecraft.World/Items/PotionItem.h index 533260341..c09396c70 100644 --- a/Minecraft.World/Items/PotionItem.h +++ b/Minecraft.World/Items/PotionItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" class MobEffectInstance; diff --git a/Minecraft.World/Items/RecordingItem.h b/Minecraft.World/Items/RecordingItem.h index 4f77410d4..389e0b51c 100644 --- a/Minecraft.World/Items/RecordingItem.h +++ b/Minecraft.World/Items/RecordingItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/RedstoneItem.h b/Minecraft.World/Items/RedstoneItem.h index eeba4a9e5..a02273931 100644 --- a/Minecraft.World/Items/RedstoneItem.h +++ b/Minecraft.World/Items/RedstoneItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/SaddleItem.h b/Minecraft.World/Items/SaddleItem.h index de65ff502..b7f668e93 100644 --- a/Minecraft.World/Items/SaddleItem.h +++ b/Minecraft.World/Items/SaddleItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/SeedItem.cpp b/Minecraft.World/Items/SeedItem.cpp index 321da2234..100df8d9a 100644 --- a/Minecraft.World/Items/SeedItem.cpp +++ b/Minecraft.World/Items/SeedItem.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../Build/stdafx.h" #include "Item.h" diff --git a/Minecraft.World/Items/SeedItem.h b/Minecraft.World/Items/SeedItem.h index 3b702d9c1..f29b69260 100644 --- a/Minecraft.World/Items/SeedItem.h +++ b/Minecraft.World/Items/SeedItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/ShearsItem.h b/Minecraft.World/Items/ShearsItem.h index eb1e795f9..deaeb8dd4 100644 --- a/Minecraft.World/Items/ShearsItem.h +++ b/Minecraft.World/Items/ShearsItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/SignItem.h b/Minecraft.World/Items/SignItem.h index 29992fd73..4b9c32a12 100644 --- a/Minecraft.World/Items/SignItem.h +++ b/Minecraft.World/Items/SignItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/SnowballItem.h b/Minecraft.World/Items/SnowballItem.h index 97680968a..5e3bae509 100644 --- a/Minecraft.World/Items/SnowballItem.h +++ b/Minecraft.World/Items/SnowballItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Items/TileItems/ClothTileItem.h b/Minecraft.World/Items/TileItems/ClothTileItem.h index 7898e3668..502c69a5d 100644 --- a/Minecraft.World/Items/TileItems/ClothTileItem.h +++ b/Minecraft.World/Items/TileItems/ClothTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/TileItems/LeafTileItem.h b/Minecraft.World/Items/TileItems/LeafTileItem.h index cc95cbd5e..c7de7b94d 100644 --- a/Minecraft.World/Items/TileItems/LeafTileItem.h +++ b/Minecraft.World/Items/TileItems/LeafTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/TileItems/PistonTileItem.h b/Minecraft.World/Items/TileItems/PistonTileItem.h index 1cc9d83a2..cd289e897 100644 --- a/Minecraft.World/Items/TileItems/PistonTileItem.h +++ b/Minecraft.World/Items/TileItems/PistonTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/TileItems/PlanterTileItem.h b/Minecraft.World/Items/TileItems/PlanterTileItem.h index e7e9387e6..2b16b7373 100644 --- a/Minecraft.World/Items/TileItems/PlanterTileItem.h +++ b/Minecraft.World/Items/TileItems/PlanterTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Item.h" diff --git a/Minecraft.World/Items/TileItems/SaplingTileItem.h b/Minecraft.World/Items/TileItems/SaplingTileItem.h index feabb0de8..22546e816 100644 --- a/Minecraft.World/Items/TileItems/SaplingTileItem.h +++ b/Minecraft.World/Items/TileItems/SaplingTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/TileItems/SmoothStoneBrickTileItem.h b/Minecraft.World/Items/TileItems/SmoothStoneBrickTileItem.h index 94f71ec01..bad7a17b8 100644 --- a/Minecraft.World/Items/TileItems/SmoothStoneBrickTileItem.h +++ b/Minecraft.World/Items/TileItems/SmoothStoneBrickTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/TileItems/StoneMonsterTileItem.h b/Minecraft.World/Items/TileItems/StoneMonsterTileItem.h index 6a4ec228d..75b5aea5e 100644 --- a/Minecraft.World/Items/TileItems/StoneMonsterTileItem.h +++ b/Minecraft.World/Items/TileItems/StoneMonsterTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/TileItems/StoneSlabTileItem.h b/Minecraft.World/Items/TileItems/StoneSlabTileItem.h index d27d4dc0c..cb4f2370b 100644 --- a/Minecraft.World/Items/TileItems/StoneSlabTileItem.h +++ b/Minecraft.World/Items/TileItems/StoneSlabTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" #include "../../Blocks/HalfSlabTile.h" diff --git a/Minecraft.World/Items/TileItems/TileItem.cpp b/Minecraft.World/Items/TileItems/TileItem.cpp index 5ada62c31..987d62aa3 100644 --- a/Minecraft.World/Items/TileItems/TileItem.cpp +++ b/Minecraft.World/Items/TileItems/TileItem.cpp @@ -1,4 +1,4 @@ -using namespace std; + #include "../../Build/stdafx.h" #include "../../Headers/net.minecraft.world.h" diff --git a/Minecraft.World/Items/TileItems/TileItem.h b/Minecraft.World/Items/TileItems/TileItem.h index aeb47b715..ac835c94f 100644 --- a/Minecraft.World/Items/TileItems/TileItem.h +++ b/Minecraft.World/Items/TileItems/TileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Item.h" diff --git a/Minecraft.World/Items/TileItems/TreeTileItem.h b/Minecraft.World/Items/TileItems/TreeTileItem.h index 06acf5949..0fcf9ff12 100644 --- a/Minecraft.World/Items/TileItems/TreeTileItem.h +++ b/Minecraft.World/Items/TileItems/TreeTileItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "TileItem.h" diff --git a/Minecraft.World/Items/WeaponItem.h b/Minecraft.World/Items/WeaponItem.h index 162866d6d..92d5473c5 100644 --- a/Minecraft.World/Items/WeaponItem.h +++ b/Minecraft.World/Items/WeaponItem.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Item.h" diff --git a/Minecraft.World/Level/CustomLevelSource.h b/Minecraft.World/Level/CustomLevelSource.h index c7a007909..ed7cd5699 100644 --- a/Minecraft.World/Level/CustomLevelSource.h +++ b/Minecraft.World/Level/CustomLevelSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "ChunkSource.h" diff --git a/Minecraft.World/Level/Events/LevelListener.h b/Minecraft.World/Level/Events/LevelListener.h index 1776fb21a..d2597dd45 100644 --- a/Minecraft.World/Level/Events/LevelListener.h +++ b/Minecraft.World/Level/Events/LevelListener.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class TileEntity; #include "../../Player/Player.h" diff --git a/Minecraft.World/Level/Level.h b/Minecraft.World/Level/Level.h index 0d3e2a935..945341bfa 100644 --- a/Minecraft.World/Level/Level.h +++ b/Minecraft.World/Level/Level.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Storage/LevelSource.h" #include "../Util/LightLayer.h" #include "ChunkPos.h" diff --git a/Minecraft.World/Level/LevelChunk.h b/Minecraft.World/Level/LevelChunk.h index 8512ade5d..f7d208273 100644 --- a/Minecraft.World/Level/LevelChunk.h +++ b/Minecraft.World/Level/LevelChunk.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class DataLayer; class TileEntity; diff --git a/Minecraft.World/Level/LevelConflictException.h b/Minecraft.World/Level/LevelConflictException.h index dfa668ae1..ad7407d20 100644 --- a/Minecraft.World/Level/LevelConflictException.h +++ b/Minecraft.World/Level/LevelConflictException.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Util/Exceptions.h" diff --git a/Minecraft.World/Level/LevelData.h b/Minecraft.World/Level/LevelData.h index 7c6bc9d35..ac5148164 100644 --- a/Minecraft.World/Level/LevelData.h +++ b/Minecraft.World/Level/LevelData.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Player; class CompoundTag; diff --git a/Minecraft.World/Level/RandomLevelSource.h b/Minecraft.World/Level/RandomLevelSource.h index b751414e0..a4e206fe5 100644 --- a/Minecraft.World/Level/RandomLevelSource.h +++ b/Minecraft.World/Level/RandomLevelSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "ChunkSource.h" diff --git a/Minecraft.World/Level/Storage/DirectoryLevelStorage.h b/Minecraft.World/Level/Storage/DirectoryLevelStorage.h index 371141bf3..c88649414 100644 --- a/Minecraft.World/Level/Storage/DirectoryLevelStorage.h +++ b/Minecraft.World/Level/Storage/DirectoryLevelStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #ifdef _LARGE_WORLDS // 51 maps per player (7x7 overworld, 1 nether, 1 end) * 100 players rounded up to power of 2 diff --git a/Minecraft.World/Level/Storage/DirectoryLevelStorageSource.h b/Minecraft.World/Level/Storage/DirectoryLevelStorageSource.h index de4fbf5e5..24a7c1968 100644 --- a/Minecraft.World/Level/Storage/DirectoryLevelStorageSource.h +++ b/Minecraft.World/Level/Storage/DirectoryLevelStorageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "LevelStorageSource.h" #include "../../IO/Files/File.h" diff --git a/Minecraft.World/Level/Storage/EntityIO.h b/Minecraft.World/Level/Storage/EntityIO.h index c96bcb8e8..3911c95eb 100644 --- a/Minecraft.World/Level/Storage/EntityIO.h +++ b/Minecraft.World/Level/Storage/EntityIO.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Entities/Entity.h" #include "../../Util/JavaIntHash.h" diff --git a/Minecraft.World/Level/Storage/LevelStorage.h b/Minecraft.World/Level/Storage/LevelStorage.h index 1d249e43d..4212eaf32 100644 --- a/Minecraft.World/Level/Storage/LevelStorage.h +++ b/Minecraft.World/Level/Storage/LevelStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../IO/Files/ConsoleSavePath.h" diff --git a/Minecraft.World/Level/Storage/LevelStorageProfilerDecorator.h b/Minecraft.World/Level/Storage/LevelStorageProfilerDecorator.h index c6576e121..477e141f7 100644 --- a/Minecraft.World/Level/Storage/LevelStorageProfilerDecorator.h +++ b/Minecraft.World/Level/Storage/LevelStorageProfilerDecorator.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "LevelStorage.h" diff --git a/Minecraft.World/Level/Storage/LevelStorageSource.h b/Minecraft.World/Level/Storage/LevelStorageSource.h index 1a23cd644..75cff7c17 100644 --- a/Minecraft.World/Level/Storage/LevelStorageSource.h +++ b/Minecraft.World/Level/Storage/LevelStorageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Build/stdafx.h" diff --git a/Minecraft.World/Level/Storage/LevelSummary.h b/Minecraft.World/Level/Storage/LevelSummary.h index b8eaee32e..fbf0850c3 100644 --- a/Minecraft.World/Level/Storage/LevelSummary.h +++ b/Minecraft.World/Level/Storage/LevelSummary.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class GameType; diff --git a/Minecraft.World/Level/Storage/LevelType.h b/Minecraft.World/Level/Storage/LevelType.h index 5689c90ba..a62b138d9 100644 --- a/Minecraft.World/Level/Storage/LevelType.h +++ b/Minecraft.World/Level/Storage/LevelType.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Headers/net.minecraft.world.level.h" class LevelType diff --git a/Minecraft.World/Level/Storage/McRegionChunkStorage.h b/Minecraft.World/Level/Storage/McRegionChunkStorage.h index 9cd1b00b5..bcca14c8a 100644 --- a/Minecraft.World/Level/Storage/McRegionChunkStorage.h +++ b/Minecraft.World/Level/Storage/McRegionChunkStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "ChunkStorage.h" #include "../LevelChunk.h" diff --git a/Minecraft.World/Level/Storage/McRegionLevelStorage.h b/Minecraft.World/Level/Storage/McRegionLevelStorage.h index c526d134b..d9b48e57c 100644 --- a/Minecraft.World/Level/Storage/McRegionLevelStorage.h +++ b/Minecraft.World/Level/Storage/McRegionLevelStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "DirectoryLevelStorage.h" diff --git a/Minecraft.World/Level/Storage/McRegionLevelStorageSource.h b/Minecraft.World/Level/Storage/McRegionLevelStorageSource.h index 6de122d39..e0437c613 100644 --- a/Minecraft.World/Level/Storage/McRegionLevelStorageSource.h +++ b/Minecraft.World/Level/Storage/McRegionLevelStorageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "DirectoryLevelStorageSource.h" #include "../../IO/Files/FileFilter.h" diff --git a/Minecraft.World/Level/Storage/MemoryChunkStorage.h b/Minecraft.World/Level/Storage/MemoryChunkStorage.h index 94497e617..b3076c4bc 100644 --- a/Minecraft.World/Level/Storage/MemoryChunkStorage.h +++ b/Minecraft.World/Level/Storage/MemoryChunkStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../ChunkSource.h" diff --git a/Minecraft.World/Level/Storage/MemoryLevelStorage.h b/Minecraft.World/Level/Storage/MemoryLevelStorage.h index dd2f2cee5..6ed7d01c6 100644 --- a/Minecraft.World/Level/Storage/MemoryLevelStorage.h +++ b/Minecraft.World/Level/Storage/MemoryLevelStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "LevelStorage.h" #include "PlayerIO.h" diff --git a/Minecraft.World/Level/Storage/MemoryLevelStorageSource.h b/Minecraft.World/Level/Storage/MemoryLevelStorageSource.h index 83526766b..9e21429d9 100644 --- a/Minecraft.World/Level/Storage/MemoryLevelStorageSource.h +++ b/Minecraft.World/Level/Storage/MemoryLevelStorageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "LevelStorageSource.h" diff --git a/Minecraft.World/Level/Storage/MockedLevelStorage.h b/Minecraft.World/Level/Storage/MockedLevelStorage.h index 65beab2d2..5c4736806 100644 --- a/Minecraft.World/Level/Storage/MockedLevelStorage.h +++ b/Minecraft.World/Level/Storage/MockedLevelStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "LevelStorage.h" diff --git a/Minecraft.World/Level/Storage/PlayerIO.h b/Minecraft.World/Level/Storage/PlayerIO.h index d1b81ed36..2de00aeeb 100644 --- a/Minecraft.World/Level/Storage/PlayerIO.h +++ b/Minecraft.World/Level/Storage/PlayerIO.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + // If we have more than MAX_PLAYER_DATA_SAVES player.dat's then we delete the oldest ones // This value can be no higher than MAXIMUM_MAP_SAVE_DATA/3 (3 being the number of dimensions in future versions) diff --git a/Minecraft.World/Level/Storage/RegionFile.h b/Minecraft.World/Level/Storage/RegionFile.h index 13c05c7ee..8b6a3c872 100644 --- a/Minecraft.World/Level/Storage/RegionFile.h +++ b/Minecraft.World/Level/Storage/RegionFile.h @@ -1,7 +1,7 @@ #pragma once #include "../../IO/Streams/Compression.h" #include "../../IO/Streams/InputOutputStream.h" -using namespace std; + class FileEntry; class ConsoleSaveFile; diff --git a/Minecraft.World/Level/Storage/SavedData.h b/Minecraft.World/Level/Storage/SavedData.h index 9c538fe68..b81956cd4 100644 --- a/Minecraft.World/Level/Storage/SavedData.h +++ b/Minecraft.World/Level/Storage/SavedData.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Util/Class.h" diff --git a/Minecraft.World/Level/Storage/SavedDataStorage.h b/Minecraft.World/Level/Storage/SavedDataStorage.h index 240bee892..b35c2bdae 100644 --- a/Minecraft.World/Level/Storage/SavedDataStorage.h +++ b/Minecraft.World/Level/Storage/SavedDataStorage.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class ConsoleSaveFile; #include "SavedData.h" diff --git a/Minecraft.World/Level/Storage/ZonedChunkStorage.h b/Minecraft.World/Level/Storage/ZonedChunkStorage.h index f93181674..40d030b74 100644 --- a/Minecraft.World/Level/Storage/ZonedChunkStorage.h +++ b/Minecraft.World/Level/Storage/ZonedChunkStorage.h @@ -5,7 +5,7 @@ // 4J Stu - There are changes to this class for 1.8.2, but since we never use it anyway lets not worry about it -using namespace std; + class ZoneFile; class ZoneIo; diff --git a/Minecraft.World/Network/Connection.h b/Minecraft.World/Network/Connection.h index 6cb92e912..0ddfa9c95 100644 --- a/Minecraft.World/Network/Connection.h +++ b/Minecraft.World/Network/Connection.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Build/stdafx.h" #include diff --git a/Minecraft.World/Network/Packets/AddEntityPacket.h b/Minecraft.World/Network/Packets/AddEntityPacket.h index f1753ae5a..985182ad7 100644 --- a/Minecraft.World/Network/Packets/AddEntityPacket.h +++ b/Minecraft.World/Network/Packets/AddEntityPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/AddMobPacket.h b/Minecraft.World/Network/Packets/AddMobPacket.h index 5a3db58d2..70c0f71e0 100644 --- a/Minecraft.World/Network/Packets/AddMobPacket.h +++ b/Minecraft.World/Network/Packets/AddMobPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" #include "../../Entities/SyncedEntityData.h" diff --git a/Minecraft.World/Network/Packets/AddPaintingPacket.h b/Minecraft.World/Network/Packets/AddPaintingPacket.h index ddde8ed6c..cbd35e6e7 100644 --- a/Minecraft.World/Network/Packets/AddPaintingPacket.h +++ b/Minecraft.World/Network/Packets/AddPaintingPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/AddPlayerPacket.h b/Minecraft.World/Network/Packets/AddPlayerPacket.h index 161a67f75..80a5c3dfb 100644 --- a/Minecraft.World/Network/Packets/AddPlayerPacket.h +++ b/Minecraft.World/Network/Packets/AddPlayerPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" #include "../../Entities/SyncedEntityData.h" diff --git a/Minecraft.World/Network/Packets/AnimatePacket.h b/Minecraft.World/Network/Packets/AnimatePacket.h index 8c5c39961..dba9f74e0 100644 --- a/Minecraft.World/Network/Packets/AnimatePacket.h +++ b/Minecraft.World/Network/Packets/AnimatePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/AwardStatPacket.h b/Minecraft.World/Network/Packets/AwardStatPacket.h index d15c5a468..b10bda312 100644 --- a/Minecraft.World/Network/Packets/AwardStatPacket.h +++ b/Minecraft.World/Network/Packets/AwardStatPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/BlockRegionUpdatePacket.h b/Minecraft.World/Network/Packets/BlockRegionUpdatePacket.h index 868298b4b..51960a038 100644 --- a/Minecraft.World/Network/Packets/BlockRegionUpdatePacket.h +++ b/Minecraft.World/Network/Packets/BlockRegionUpdatePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ChatPacket.h b/Minecraft.World/Network/Packets/ChatPacket.h index 1cdb3340d..fd69a6d9a 100644 --- a/Minecraft.World/Network/Packets/ChatPacket.h +++ b/Minecraft.World/Network/Packets/ChatPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ChunkTilesUpdatePacket.h b/Minecraft.World/Network/Packets/ChunkTilesUpdatePacket.h index ae9275ce3..8790645a6 100644 --- a/Minecraft.World/Network/Packets/ChunkTilesUpdatePacket.h +++ b/Minecraft.World/Network/Packets/ChunkTilesUpdatePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ChunkVisibilityAreaPacket.h b/Minecraft.World/Network/Packets/ChunkVisibilityAreaPacket.h index c72e62818..fc8cd4c9f 100644 --- a/Minecraft.World/Network/Packets/ChunkVisibilityAreaPacket.h +++ b/Minecraft.World/Network/Packets/ChunkVisibilityAreaPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ChunkVisibilityPacket.h b/Minecraft.World/Network/Packets/ChunkVisibilityPacket.h index a2a6ef01c..86f35134c 100644 --- a/Minecraft.World/Network/Packets/ChunkVisibilityPacket.h +++ b/Minecraft.World/Network/Packets/ChunkVisibilityPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ComplexItemDataPacket.h b/Minecraft.World/Network/Packets/ComplexItemDataPacket.h index 34d62da37..e502a72b0 100644 --- a/Minecraft.World/Network/Packets/ComplexItemDataPacket.h +++ b/Minecraft.World/Network/Packets/ComplexItemDataPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerAckPacket.h b/Minecraft.World/Network/Packets/ContainerAckPacket.h index 635b194f2..96476d065 100644 --- a/Minecraft.World/Network/Packets/ContainerAckPacket.h +++ b/Minecraft.World/Network/Packets/ContainerAckPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerClickPacket.h b/Minecraft.World/Network/Packets/ContainerClickPacket.h index 98f320fdb..6e96afe9c 100644 --- a/Minecraft.World/Network/Packets/ContainerClickPacket.h +++ b/Minecraft.World/Network/Packets/ContainerClickPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerClosePacket.h b/Minecraft.World/Network/Packets/ContainerClosePacket.h index 190926c36..f4b13ebe4 100644 --- a/Minecraft.World/Network/Packets/ContainerClosePacket.h +++ b/Minecraft.World/Network/Packets/ContainerClosePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerOpenPacket.h b/Minecraft.World/Network/Packets/ContainerOpenPacket.h index 169b7d7d5..9aa467d77 100644 --- a/Minecraft.World/Network/Packets/ContainerOpenPacket.h +++ b/Minecraft.World/Network/Packets/ContainerOpenPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerSetContentPacket.h b/Minecraft.World/Network/Packets/ContainerSetContentPacket.h index 2b38d21f0..4af928d42 100644 --- a/Minecraft.World/Network/Packets/ContainerSetContentPacket.h +++ b/Minecraft.World/Network/Packets/ContainerSetContentPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerSetDataPacket.h b/Minecraft.World/Network/Packets/ContainerSetDataPacket.h index 64ee50f79..89bb437e7 100644 --- a/Minecraft.World/Network/Packets/ContainerSetDataPacket.h +++ b/Minecraft.World/Network/Packets/ContainerSetDataPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ContainerSetSlotPacket.h b/Minecraft.World/Network/Packets/ContainerSetSlotPacket.h index 6b7958c78..bfa4d2e05 100644 --- a/Minecraft.World/Network/Packets/ContainerSetSlotPacket.h +++ b/Minecraft.World/Network/Packets/ContainerSetSlotPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/CraftItemPacket.h b/Minecraft.World/Network/Packets/CraftItemPacket.h index c6618698c..ca6fb0772 100644 --- a/Minecraft.World/Network/Packets/CraftItemPacket.h +++ b/Minecraft.World/Network/Packets/CraftItemPacket.h @@ -2,7 +2,7 @@ // 4J ADDED THIS PACKET -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/CustomPayloadPacket.h b/Minecraft.World/Network/Packets/CustomPayloadPacket.h index 09d6504d4..c545c7bff 100644 --- a/Minecraft.World/Network/Packets/CustomPayloadPacket.h +++ b/Minecraft.World/Network/Packets/CustomPayloadPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/DebugOptionsPacket.h b/Minecraft.World/Network/Packets/DebugOptionsPacket.h index 924027580..6eda123d5 100644 --- a/Minecraft.World/Network/Packets/DebugOptionsPacket.h +++ b/Minecraft.World/Network/Packets/DebugOptionsPacket.h @@ -2,7 +2,7 @@ // 4J ADDED THIS PACKET -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/DisconnectPacket.h b/Minecraft.World/Network/Packets/DisconnectPacket.h index 4aa0b2964..98f216684 100644 --- a/Minecraft.World/Network/Packets/DisconnectPacket.h +++ b/Minecraft.World/Network/Packets/DisconnectPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/EntityActionAtPositionPacket.h b/Minecraft.World/Network/Packets/EntityActionAtPositionPacket.h index ce0a2fc16..d5edc183a 100644 --- a/Minecraft.World/Network/Packets/EntityActionAtPositionPacket.h +++ b/Minecraft.World/Network/Packets/EntityActionAtPositionPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/EntityEventPacket.h b/Minecraft.World/Network/Packets/EntityEventPacket.h index 2b4ff842a..a17f3be12 100644 --- a/Minecraft.World/Network/Packets/EntityEventPacket.h +++ b/Minecraft.World/Network/Packets/EntityEventPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ExplodePacket.h b/Minecraft.World/Network/Packets/ExplodePacket.h index d8264d509..2f2dfa168 100644 --- a/Minecraft.World/Network/Packets/ExplodePacket.h +++ b/Minecraft.World/Network/Packets/ExplodePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Level/TilePos.h" #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/GameCommandPacket.h b/Minecraft.World/Network/Packets/GameCommandPacket.h index a4aac45fd..f476fb074 100644 --- a/Minecraft.World/Network/Packets/GameCommandPacket.h +++ b/Minecraft.World/Network/Packets/GameCommandPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Commands/CommandsEnum.h" #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/GameEventPacket.h b/Minecraft.World/Network/Packets/GameEventPacket.h index f9e1f50b3..86c59c397 100644 --- a/Minecraft.World/Network/Packets/GameEventPacket.h +++ b/Minecraft.World/Network/Packets/GameEventPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/InteractPacket.h b/Minecraft.World/Network/Packets/InteractPacket.h index 1af15bf23..e2b67a1ff 100644 --- a/Minecraft.World/Network/Packets/InteractPacket.h +++ b/Minecraft.World/Network/Packets/InteractPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/KeepAlivePacket.h b/Minecraft.World/Network/Packets/KeepAlivePacket.h index 5c7ce5cdf..e7b74dc73 100644 --- a/Minecraft.World/Network/Packets/KeepAlivePacket.h +++ b/Minecraft.World/Network/Packets/KeepAlivePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/KickPlayerPacket.h b/Minecraft.World/Network/Packets/KickPlayerPacket.h index 5193f96aa..37e4655c5 100644 --- a/Minecraft.World/Network/Packets/KickPlayerPacket.h +++ b/Minecraft.World/Network/Packets/KickPlayerPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/LevelEventPacket.h b/Minecraft.World/Network/Packets/LevelEventPacket.h index d0f0aeb04..3e4363498 100644 --- a/Minecraft.World/Network/Packets/LevelEventPacket.h +++ b/Minecraft.World/Network/Packets/LevelEventPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/LoginPacket.h b/Minecraft.World/Network/Packets/LoginPacket.h index e9e36d5c3..d0bfb030a 100644 --- a/Minecraft.World/Network/Packets/LoginPacket.h +++ b/Minecraft.World/Network/Packets/LoginPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" class LevelType; diff --git a/Minecraft.World/Network/Packets/MoveEntityPacket.h b/Minecraft.World/Network/Packets/MoveEntityPacket.h index 4be446787..62560809f 100644 --- a/Minecraft.World/Network/Packets/MoveEntityPacket.h +++ b/Minecraft.World/Network/Packets/MoveEntityPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/MoveEntityPacketSmall.h b/Minecraft.World/Network/Packets/MoveEntityPacketSmall.h index 92fbd2578..fffdc7e56 100644 --- a/Minecraft.World/Network/Packets/MoveEntityPacketSmall.h +++ b/Minecraft.World/Network/Packets/MoveEntityPacketSmall.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/MovePlayerPacket.h b/Minecraft.World/Network/Packets/MovePlayerPacket.h index dfdeec28d..f0f200651 100644 --- a/Minecraft.World/Network/Packets/MovePlayerPacket.h +++ b/Minecraft.World/Network/Packets/MovePlayerPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/Packet.h b/Minecraft.World/Network/Packets/Packet.h index 616802277..57e420d3d 100644 --- a/Minecraft.World/Network/Packets/Packet.h +++ b/Minecraft.World/Network/Packets/Packet.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; +// class Packet; class PacketListener; diff --git a/Minecraft.World/Network/Packets/PacketListener.h b/Minecraft.World/Network/Packets/PacketListener.h index c336e9d22..1fb81e19d 100644 --- a/Minecraft.World/Network/Packets/PacketListener.h +++ b/Minecraft.World/Network/Packets/PacketListener.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Packet; diff --git a/Minecraft.World/Network/Packets/PlayerActionPacket.h b/Minecraft.World/Network/Packets/PlayerActionPacket.h index 9f434e3a3..f1624a091 100644 --- a/Minecraft.World/Network/Packets/PlayerActionPacket.h +++ b/Minecraft.World/Network/Packets/PlayerActionPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/PlayerCommandPacket.h b/Minecraft.World/Network/Packets/PlayerCommandPacket.h index db74d690c..124bf4d22 100644 --- a/Minecraft.World/Network/Packets/PlayerCommandPacket.h +++ b/Minecraft.World/Network/Packets/PlayerCommandPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/PlayerInfoPacket.h b/Minecraft.World/Network/Packets/PlayerInfoPacket.h index 5561cf11f..fd4c83451 100644 --- a/Minecraft.World/Network/Packets/PlayerInfoPacket.h +++ b/Minecraft.World/Network/Packets/PlayerInfoPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" class ServerPlayer; diff --git a/Minecraft.World/Network/Packets/PlayerInputPacket.h b/Minecraft.World/Network/Packets/PlayerInputPacket.h index db15afa13..81fbd5c1f 100644 --- a/Minecraft.World/Network/Packets/PlayerInputPacket.h +++ b/Minecraft.World/Network/Packets/PlayerInputPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/PreLoginPacket.h b/Minecraft.World/Network/Packets/PreLoginPacket.h index 78d653792..c6839b2b6 100644 --- a/Minecraft.World/Network/Packets/PreLoginPacket.h +++ b/Minecraft.World/Network/Packets/PreLoginPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/RemoveEntitiesPacket.h b/Minecraft.World/Network/Packets/RemoveEntitiesPacket.h index edbb6a4a9..b70b92249 100644 --- a/Minecraft.World/Network/Packets/RemoveEntitiesPacket.h +++ b/Minecraft.World/Network/Packets/RemoveEntitiesPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Util/BasicTypeContainers.h" #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/RespawnPacket.h b/Minecraft.World/Network/Packets/RespawnPacket.h index b9ed1665f..0c00b0b9e 100644 --- a/Minecraft.World/Network/Packets/RespawnPacket.h +++ b/Minecraft.World/Network/Packets/RespawnPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/ServerSettingsChangedPacket.h b/Minecraft.World/Network/Packets/ServerSettingsChangedPacket.h index 87a570b66..b3246523a 100644 --- a/Minecraft.World/Network/Packets/ServerSettingsChangedPacket.h +++ b/Minecraft.World/Network/Packets/ServerSettingsChangedPacket.h @@ -2,7 +2,7 @@ // 4J ADDED THIS PACKET -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetCarriedItemPacket.h b/Minecraft.World/Network/Packets/SetCarriedItemPacket.h index 07676aeff..26c9bbc92 100644 --- a/Minecraft.World/Network/Packets/SetCarriedItemPacket.h +++ b/Minecraft.World/Network/Packets/SetCarriedItemPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetEntityDataPacket.h b/Minecraft.World/Network/Packets/SetEntityDataPacket.h index d8a009d02..9ac726b6d 100644 --- a/Minecraft.World/Network/Packets/SetEntityDataPacket.h +++ b/Minecraft.World/Network/Packets/SetEntityDataPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" #include "../../Entities/SyncedEntityData.h" diff --git a/Minecraft.World/Network/Packets/SetEntityMotionPacket.h b/Minecraft.World/Network/Packets/SetEntityMotionPacket.h index 0aea43220..537c5a4fd 100644 --- a/Minecraft.World/Network/Packets/SetEntityMotionPacket.h +++ b/Minecraft.World/Network/Packets/SetEntityMotionPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetEquippedItemPacket.h b/Minecraft.World/Network/Packets/SetEquippedItemPacket.h index 89b3ac3d3..512763ed5 100644 --- a/Minecraft.World/Network/Packets/SetEquippedItemPacket.h +++ b/Minecraft.World/Network/Packets/SetEquippedItemPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetHealthPacket.h b/Minecraft.World/Network/Packets/SetHealthPacket.h index 1a6c09acf..111e9e0b9 100644 --- a/Minecraft.World/Network/Packets/SetHealthPacket.h +++ b/Minecraft.World/Network/Packets/SetHealthPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetRidingPacket.h b/Minecraft.World/Network/Packets/SetRidingPacket.h index 25a3f046a..027e38ee0 100644 --- a/Minecraft.World/Network/Packets/SetRidingPacket.h +++ b/Minecraft.World/Network/Packets/SetRidingPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetSpawnPositionPacket.h b/Minecraft.World/Network/Packets/SetSpawnPositionPacket.h index ea7e3e6ff..3e995e9a4 100644 --- a/Minecraft.World/Network/Packets/SetSpawnPositionPacket.h +++ b/Minecraft.World/Network/Packets/SetSpawnPositionPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SetTimePacket.h b/Minecraft.World/Network/Packets/SetTimePacket.h index 6686b3efa..ade7075e5 100644 --- a/Minecraft.World/Network/Packets/SetTimePacket.h +++ b/Minecraft.World/Network/Packets/SetTimePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/SignUpdatePacket.h b/Minecraft.World/Network/Packets/SignUpdatePacket.h index ae3a5835f..d45f59350 100644 --- a/Minecraft.World/Network/Packets/SignUpdatePacket.h +++ b/Minecraft.World/Network/Packets/SignUpdatePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TakeItemEntityPacket.h b/Minecraft.World/Network/Packets/TakeItemEntityPacket.h index 8b09ab8ff..524d7e627 100644 --- a/Minecraft.World/Network/Packets/TakeItemEntityPacket.h +++ b/Minecraft.World/Network/Packets/TakeItemEntityPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TeleportEntityPacket.h b/Minecraft.World/Network/Packets/TeleportEntityPacket.h index af36bd93a..0b85a3b99 100644 --- a/Minecraft.World/Network/Packets/TeleportEntityPacket.h +++ b/Minecraft.World/Network/Packets/TeleportEntityPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TextureAndGeometryChangePacket.h b/Minecraft.World/Network/Packets/TextureAndGeometryChangePacket.h index 5ea96ca1d..00001d8f3 100644 --- a/Minecraft.World/Network/Packets/TextureAndGeometryChangePacket.h +++ b/Minecraft.World/Network/Packets/TextureAndGeometryChangePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TextureAndGeometryPacket.h b/Minecraft.World/Network/Packets/TextureAndGeometryPacket.h index 13cfb60fb..f1ca1f7cb 100644 --- a/Minecraft.World/Network/Packets/TextureAndGeometryPacket.h +++ b/Minecraft.World/Network/Packets/TextureAndGeometryPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" #include "../../../Minecraft.Client/Rendering/Models/Model.h" diff --git a/Minecraft.World/Network/Packets/TextureChangePacket.h b/Minecraft.World/Network/Packets/TextureChangePacket.h index 5af0624c4..7f281a815 100644 --- a/Minecraft.World/Network/Packets/TextureChangePacket.h +++ b/Minecraft.World/Network/Packets/TextureChangePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TexturePacket.h b/Minecraft.World/Network/Packets/TexturePacket.h index c759e6d8c..d4e199019 100644 --- a/Minecraft.World/Network/Packets/TexturePacket.h +++ b/Minecraft.World/Network/Packets/TexturePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TileEntityDataPacket.h b/Minecraft.World/Network/Packets/TileEntityDataPacket.h index 61d712315..8af857834 100644 --- a/Minecraft.World/Network/Packets/TileEntityDataPacket.h +++ b/Minecraft.World/Network/Packets/TileEntityDataPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TileEventPacket.h b/Minecraft.World/Network/Packets/TileEventPacket.h index ac2b98310..381e2d0a9 100644 --- a/Minecraft.World/Network/Packets/TileEventPacket.h +++ b/Minecraft.World/Network/Packets/TileEventPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TileUpdatePacket.h b/Minecraft.World/Network/Packets/TileUpdatePacket.h index 681c3e8db..f4d34fc01 100644 --- a/Minecraft.World/Network/Packets/TileUpdatePacket.h +++ b/Minecraft.World/Network/Packets/TileUpdatePacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/TradeItemPacket.h b/Minecraft.World/Network/Packets/TradeItemPacket.h index 6c631da39..c37d3f785 100644 --- a/Minecraft.World/Network/Packets/TradeItemPacket.h +++ b/Minecraft.World/Network/Packets/TradeItemPacket.h @@ -2,7 +2,7 @@ // 4J ADDED PACKET -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/UpdateGameRuleProgressPacket.h b/Minecraft.World/Network/Packets/UpdateGameRuleProgressPacket.h index 44b142600..645680112 100644 --- a/Minecraft.World/Network/Packets/UpdateGameRuleProgressPacket.h +++ b/Minecraft.World/Network/Packets/UpdateGameRuleProgressPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/UpdateProgressPacket.h b/Minecraft.World/Network/Packets/UpdateProgressPacket.h index 4d77125fe..66e986b4f 100644 --- a/Minecraft.World/Network/Packets/UpdateProgressPacket.h +++ b/Minecraft.World/Network/Packets/UpdateProgressPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/UseItemPacket.h b/Minecraft.World/Network/Packets/UseItemPacket.h index b217187d2..0ac662ae4 100644 --- a/Minecraft.World/Network/Packets/UseItemPacket.h +++ b/Minecraft.World/Network/Packets/UseItemPacket.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Network/Packets/XZPacket.h b/Minecraft.World/Network/Packets/XZPacket.h index 801d99a15..4ae6e833a 100644 --- a/Minecraft.World/Network/Packets/XZPacket.h +++ b/Minecraft.World/Network/Packets/XZPacket.h @@ -2,7 +2,7 @@ // 4J ADDED THIS PACKET -using namespace std; + #include "Packet.h" diff --git a/Minecraft.World/Player/Player.h b/Minecraft.World/Player/Player.h index 4556770ab..55159386c 100644 --- a/Minecraft.World/Player/Player.h +++ b/Minecraft.World/Player/Player.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Entities/Mob.h" #include "../Util/Definitions.h" diff --git a/Minecraft.World/Recipes/Recipes.h b/Minecraft.World/Recipes/Recipes.h index e6aadcef2..49c1449fa 100644 --- a/Minecraft.World/Recipes/Recipes.h +++ b/Minecraft.World/Recipes/Recipes.h @@ -18,7 +18,7 @@ import net.minecraft.world.level.tile.Tile; #include "Recipy.h" #pragma once -using namespace std; + class CraftingContainer; class FireTile; diff --git a/Minecraft.World/Stats/Achievement.h b/Minecraft.World/Stats/Achievement.h index 2c51f709f..5339b8431 100644 --- a/Minecraft.World/Stats/Achievement.h +++ b/Minecraft.World/Stats/Achievement.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Stat.h" diff --git a/Minecraft.World/Stats/Achievements.h b/Minecraft.World/Stats/Achievements.h index e58c4ba7c..772fea47c 100644 --- a/Minecraft.World/Stats/Achievements.h +++ b/Minecraft.World/Stats/Achievements.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Achievement; diff --git a/Minecraft.World/Stats/GeneralStat.h b/Minecraft.World/Stats/GeneralStat.h index 6d49c1a7f..117ba2ec8 100644 --- a/Minecraft.World/Stats/GeneralStat.h +++ b/Minecraft.World/Stats/GeneralStat.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Stat.h" diff --git a/Minecraft.World/Stats/ItemStat.h b/Minecraft.World/Stats/ItemStat.h index 80fbe861a..dccaf528e 100644 --- a/Minecraft.World/Stats/ItemStat.h +++ b/Minecraft.World/Stats/ItemStat.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Stat.h" diff --git a/Minecraft.World/Stats/Stat.h b/Minecraft.World/Stats/Stat.h index e6c29afb2..5182e6bd8 100644 --- a/Minecraft.World/Stats/Stat.h +++ b/Minecraft.World/Stats/Stat.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "StatFormatter.h" #include "GenericStats.h" diff --git a/Minecraft.World/Stats/StatFormatter.h b/Minecraft.World/Stats/StatFormatter.h index 118651cf9..fcc1dd55f 100644 --- a/Minecraft.World/Stats/StatFormatter.h +++ b/Minecraft.World/Stats/StatFormatter.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class StatFormatter { diff --git a/Minecraft.World/Stats/Stats.h b/Minecraft.World/Stats/Stats.h index b9f753223..b7d70d1c3 100644 --- a/Minecraft.World/Stats/Stats.h +++ b/Minecraft.World/Stats/Stats.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Stat.h" diff --git a/Minecraft.World/Util/AABB.h b/Minecraft.World/Util/AABB.h index 36bc15f5c..5341e6eba 100644 --- a/Minecraft.World/Util/AABB.h +++ b/Minecraft.World/Util/AABB.h @@ -4,7 +4,7 @@ #include "Definitions.h" class HitResult; -using namespace std; + class AABB { diff --git a/Minecraft.World/Util/Arrays.h b/Minecraft.World/Util/Arrays.h index f13cfdab2..4cf2f8060 100644 --- a/Minecraft.World/Util/Arrays.h +++ b/Minecraft.World/Util/Arrays.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "ArrayWithLength.h" diff --git a/Minecraft.World/Util/BinaryHeap.h b/Minecraft.World/Util/BinaryHeap.h index 6d56e8192..c3898d758 100644 --- a/Minecraft.World/Util/BinaryHeap.h +++ b/Minecraft.World/Util/BinaryHeap.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Build/stdafx.h" #include "../AI/Navigation/Node.h" diff --git a/Minecraft.World/Util/Class.h b/Minecraft.World/Util/Class.h index 5dbbf9656..9d07027ad 100644 --- a/Minecraft.World/Util/Class.h +++ b/Minecraft.World/Util/Class.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class InputStream; // This file aims to provide functionality to mimic the subset of java's Class class that we require. Classes that require this diff --git a/Minecraft.World/Util/DamageSource.h b/Minecraft.World/Util/DamageSource.h index 40436df23..cefa4a9e9 100644 --- a/Minecraft.World/Util/DamageSource.h +++ b/Minecraft.World/Util/DamageSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Mob; class Entity; diff --git a/Minecraft.World/Util/Definitions.h b/Minecraft.World/Util/Definitions.h index d338019db..8399c5813 100644 --- a/Minecraft.World/Util/Definitions.h +++ b/Minecraft.World/Util/Definitions.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class AABB; class Recipy; diff --git a/Minecraft.World/Util/DescFormatter.h b/Minecraft.World/Util/DescFormatter.h index 6ab9f2250..a5b04eeb8 100644 --- a/Minecraft.World/Util/DescFormatter.h +++ b/Minecraft.World/Util/DescFormatter.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class DescFormatter { diff --git a/Minecraft.World/Util/Exceptions.h b/Minecraft.World/Util/Exceptions.h index 098aa817d..49ff86fde 100644 --- a/Minecraft.World/Util/Exceptions.h +++ b/Minecraft.World/Util/Exceptions.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class EOFException : public std::exception { diff --git a/Minecraft.World/Util/FlippedIcon.h b/Minecraft.World/Util/FlippedIcon.h index 3c46a3e49..37f083d46 100644 --- a/Minecraft.World/Util/FlippedIcon.h +++ b/Minecraft.World/Util/FlippedIcon.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Icon.h" diff --git a/Minecraft.World/Util/HashExtension.h b/Minecraft.World/Util/HashExtension.h index 85eec19ae..8f76fe6b6 100644 --- a/Minecraft.World/Util/HashExtension.h +++ b/Minecraft.World/Util/HashExtension.h @@ -1,6 +1,6 @@ #pragma once #ifdef _XBOX -//using namespace std; +// namespace std { namespace tr1 diff --git a/Minecraft.World/Util/Hasher.h b/Minecraft.World/Util/Hasher.h index 5229bf7f0..7621f85c2 100644 --- a/Minecraft.World/Util/Hasher.h +++ b/Minecraft.World/Util/Hasher.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Hasher { diff --git a/Minecraft.World/Util/I18n.h b/Minecraft.World/Util/I18n.h index 1e6b063ef..0cb87a57b 100644 --- a/Minecraft.World/Util/I18n.h +++ b/Minecraft.World/Util/I18n.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../Build/stdafx.h" #include "Language.h" diff --git a/Minecraft.World/Util/Icon.h b/Minecraft.World/Util/Icon.h index 3d1f7c030..fa606ff48 100644 --- a/Minecraft.World/Util/Icon.h +++ b/Minecraft.World/Util/Icon.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Icon diff --git a/Minecraft.World/Util/IconRegister.h b/Minecraft.World/Util/IconRegister.h index 5deece75e..b7a5bbf3f 100644 --- a/Minecraft.World/Util/IconRegister.h +++ b/Minecraft.World/Util/IconRegister.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class Icon; diff --git a/Minecraft.World/Util/NumberFormatters.h b/Minecraft.World/Util/NumberFormatters.h index 6d3f658b8..08b3dda55 100644 --- a/Minecraft.World/Util/NumberFormatters.h +++ b/Minecraft.World/Util/NumberFormatters.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + // 4J Stu - The java formated numbers based on a local passed in, but I am just going for a constant format here class NumberFormat diff --git a/Minecraft.World/Util/ProgressListener.h b/Minecraft.World/Util/ProgressListener.h index 328914d1e..d258f1342 100644 --- a/Minecraft.World/Util/ProgressListener.h +++ b/Minecraft.World/Util/ProgressListener.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class ProgressListener { diff --git a/Minecraft.World/Util/SharedConstants.h b/Minecraft.World/Util/SharedConstants.h index 998f03829..e9b8a254d 100644 --- a/Minecraft.World/Util/SharedConstants.h +++ b/Minecraft.World/Util/SharedConstants.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "Class.h" class SharedConstants diff --git a/Minecraft.World/Util/StringHelpers.h b/Minecraft.World/Util/StringHelpers.h index ec901af17..73092ef69 100644 --- a/Minecraft.World/Util/StringHelpers.h +++ b/Minecraft.World/Util/StringHelpers.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; +//using namespace stdtd; std::wstring toLower(const std::wstring& a); std::wstring trimString(const std::wstring& a); diff --git a/Minecraft.World/Util/Vec3.h b/Minecraft.World/Util/Vec3.h index f7131f0bd..0d1fd247d 100644 --- a/Minecraft.World/Util/Vec3.h +++ b/Minecraft.World/Util/Vec3.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + class AABB; diff --git a/Minecraft.World/WorldGen/Biomes/Biome.h b/Minecraft.World/WorldGen/Biomes/Biome.h index 1dc6f4ddb..a02c2bb4a 100644 --- a/Minecraft.World/WorldGen/Biomes/Biome.h +++ b/Minecraft.World/WorldGen/Biomes/Biome.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Level/Storage/LevelSource.h" #include "../../Entities/Mob.h" diff --git a/Minecraft.World/WorldGen/Features/CaveFeature.cpp b/Minecraft.World/WorldGen/Features/CaveFeature.cpp index 727e7c737..139ee814d 100644 --- a/Minecraft.World/WorldGen/Features/CaveFeature.cpp +++ b/Minecraft.World/WorldGen/Features/CaveFeature.cpp @@ -2,7 +2,7 @@ #include "CaveFeature.h" #include "../../Headers/net.minecraft.world.level.h" #include "../../Headers/net.minecraft.world.level.tile.h" -using namespace std; + bool CaveFeature::place(Level *level, Random *random, int x, int y, int z) { diff --git a/Minecraft.World/WorldGen/Sources/FlatLevelSource.h b/Minecraft.World/WorldGen/Sources/FlatLevelSource.h index 7104ea610..430eb722b 100644 --- a/Minecraft.World/WorldGen/Sources/FlatLevelSource.h +++ b/Minecraft.World/WorldGen/Sources/FlatLevelSource.h @@ -1,5 +1,5 @@ #pragma once -using namespace std; + #include "../../Level/ChunkSource.h"