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 62f4e888..8533f59f 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 56e4a82b..b9d2d492 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 fb634cbf..8ead9724 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 d3e74b23..4963d3ab 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 1fadfa71..0742acc3 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 3b8a91ea..db228631 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 68aff9f0..85ac8d21 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 78c99747..ac6ed081 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 3d9a0f78..f0ff9924 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 dfc3be49..0d071fa3 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 9a9ec08c..ced9a6c9 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 e49255b0..a9df81ea 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 50e9b35d..1f79508f 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 d9efdb2c..9c9df9f0 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 c0e94d37..ae8ec488 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 280c9126..ba0f3413 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 495adf16..6712a62d 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 5490502b..d5c5a8e2 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 9243abf1..50131575 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 9f0988c9..883b2106 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 68fb8bc4..4d97a6ea 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 abcb9518..0f9ddc45 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 fa9216a6..87301283 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 230b540b..c62e4948 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 3950bbad..c827a868 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 3b109ac9..737a9d9c 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 b11dd5fc..938ebb07 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 c8d7d4b5..3a1e7a02 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 9bdcf2c2..284d093c 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 e0f5d6c7..06cc8119 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 1268ac0b..d09b1f7a 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 5f3e8049..9ca088ff 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 969ca145..b8da250b 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 a98f20ad..d3d9a32f 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 e9948b7d..3a70bd4b 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 bb2ad5b7..5027bf19 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 805cbf16..70df9da3 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 7ee722ee..7650b7cc 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 c3231bb9..787fae4d 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 eb443cee..92ac51da 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 2095385b..4337d84d 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 1f5c01b7..7cefa63e 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 1ca51db4..1b6b6109 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 292a2f69..b47d3623 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 ab8a1fe4..32941711 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 431ba5cd..104e6ce2 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 73ef7eee..82be7ec6 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 57279440..e2202c14 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 8913d314..6af085fe 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 428ff29c..026c457a 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 b123e1c5..3c87cd8f 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 e08c1bbb..e3f6b6bf 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 9bccba97..c861a88c 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 082f4444..6a7be75f 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 ee2a9af3..0145c72d 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 a397e39b..d8c67223 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 96e9c90b..f86cfac7 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 0814d5f4..a1a7dc83 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 a1bdaa8f..d1bbf29a 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 806e0d30..985bf866 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 03d1fc30..af13345e 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 9f4e83e6..a9694738 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 b7409e00..aac43cda 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 6c59a61f..d0f2e861 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 5819b5ea..71324d0e 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 6fee65f3..ad140308 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 554671f4..169b49f3 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 5d7b0466..7b66eae1 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 b0e471cf..43879f3e 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 d4dcdaec..8fb349d8 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 1de5b2f0..3d8504e2 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 07778abd..39959a90 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 3b3ded4f..96ca5b11 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 d949656b..158bef0d 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 ed412bd8..94ebd823 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 8aef6b83..80d2d430 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 da1636f9..40cf24e1 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 9829ae50..c65a3650 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 7570c001..414f484c 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 f75a6081..18f7c15e 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 5b6a7bf3..83ca6b16 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 a6b7b4db..8bf103be 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 23bddd8e..4e55afe7 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 9146ac5a..a5247bc3 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 3dfdc1e3..f4724f56 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 f85be533..5a3a8c27 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 119e8afa..2978ac36 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 12d46f70..a3f107cd 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 bfbc46a1..e428aa11 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 236907f6..9b55bfaf 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 62ab21a6..cb8b6e5c 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 247d1533..21c40caf 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 42972c40..d6a92864 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 08a1f6b6..de71490c 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 9bd14b10..5f99d5c1 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 2198f1e3..d6ef1b8b 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 3012212e..434fd25e 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 077090a6..6e72e09b 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 2bfdbe31..0c0a2f08 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 88aae931..8b0b0ec5 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 a83731c5..4aad80f4 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 ad85ec62..0dfb2148 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 6329c6ec..6325180b 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 70cd8abd..b57d5fc9 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 9a190928..5fc24dd5 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 94609ce1..0dac12ca 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 306a895e..79ea26d1 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 1103f000..466dc4b8 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 8939cd01..46444696 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 d09d460a..5ef82ea2 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 2460ff24..f03afa9c 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 071f0c7c..fd5af13e 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 cf003507..3ed92112 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 69d669ae..db771b1b 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 e1d11598..745bc426 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 2c309479..83c46117 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 9d1ef8b8..b47c3f26 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 b2f70f86..8649970d 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 7f42234e..6c5ae44f 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 dd29d67c..c8f16849 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 b4d147d3..f0bc8195 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 c0d18dbb..49b4e368 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 e721f830..bd718ee4 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 fe702804..7da06198 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 1575e3fe..6de06ff2 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 32e55d7b..3d6e274d 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 cb74cf8e..d5c9a428 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 9602e727..9371572c 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 4b979af2..6743e616 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 13a2b1e4..6b4519ae 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 f160ab88..9868cfb0 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 7ce1e60e..7954b580 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 34695b74..9bf64348 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 ad792d65..796c6ad9 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 98ecdf6d..18beaab9 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 53ab85cf..819d32e7 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 db9a6978..faf1e41c 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 2a892b08..5b2bebd8 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 b17691b2..145fb780 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 576cc9f5..13722f88 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 e2433aa3..2cf8bf54 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 f8ee5c13..2cf6d14f 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 15ef3d69..830f9eae 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 c8fbf6c9..b6b3e552 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 58ae1459..be6de516 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 804760ee..7129913b 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 da638542..7726b60b 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 b66a307d..b6908d62 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 1c91ca14..99f9837e 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 9a5c59f5..b36dcbae 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 f5d14038..1ad6cfd6 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 1f0339b5..f37677f1 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 e7a44ab2..b78f194d 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 86b31b0d..dc4ab730 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 477d52df..642b2c17 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 f206df49..16f3ba16 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 70c2acb7..ae3eda90 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 036781a4..4657274f 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 2e217a66..f873e6dd 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 635d8148..e3588280 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 0251593f..a24fda54 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 69496066..f016a1e9 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 4a47cf48..0442da4f 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 a5763a5e..aa1a5d4a 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 2d16d6b1..4d6ce184 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 e353d6cb..b7405803 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 e3d94b45..eb041fed 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 755dfc4c..465ee1ec 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 ddeb0b5e..80aa857b 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 4566ed9a..d097fd5c 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 53326034..c09396c7 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 4f77410d..389e0b51 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 eeba4a9e..a0227393 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 de65ff50..b7f668e9 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 321da223..100df8d9 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 3b702d9c..f29b6926 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 eb1e795f..deaeb8dd 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 29992fd7..4b9c32a1 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 97680968..5e3bae50 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 7898e366..502c69a5 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 cc95cbd5..c7de7b94 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 1cc9d83a..cd289e89 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 e7e9387e..2b16b737 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 feabb0de..22546e81 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 94f71ec0..bad7a17b 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 6a4ec228..75b5aea5 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 d27d4dc0..cb4f2370 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 5ada62c3..987d62aa 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 aeb47b71..ac835c94 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 06acf594..0fcf9ff1 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 162866d6..92d5473c 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 c7a00790..ed7cd569 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 1776fb21..d2597dd4 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 0d3e2a93..945341bf 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 8512ade5..f7d20827 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 dfa668ae..ad7407d2 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 7c6bc9d3..ac514816 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 b751414e..a4e206fe 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 371141bf..c8864941 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 de4fbf5e..24a7c196 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 c96bcb8e..3911c95e 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 1d249e43..4212eaf3 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 c6576e12..477e141f 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 1a23cd64..75cff7c1 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 b8eaee32..fbf0850c 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 5689c90b..a62b138d 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 9cd1b00b..bcca14c8 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 c526d134..d9b48e57 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 6de122d3..e0437c61 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 94497e61..b3076c4b 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 dd2f2cee..6ed7d01c 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 83526766..9e21429d 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 65beab2d..5c473680 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 d1b81ed3..2de00aee 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 13c05c7e..8b6a3c87 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 9c538fe6..b81956cd 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 240bee89..b35c2bda 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 f9318167..40d030b7 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 6cb92e91..0ddfa9c9 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 f1753ae5..985182ad 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 5a3db58d..70c0f71e 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 ddde8ed6..cbd35e6e 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 161a67f7..80a5c3df 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 8c5c3996..dba9f74e 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 d15c5a46..b10bda31 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 868298b4..51960a03 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 1cdb3340..fd69a6d9 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 ae9275ce..8790645a 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 c72e6281..fc8cd4c9 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 a2a6ef01..86f35134 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 34d62da3..e502a72b 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 635b194f..96476d06 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 98f320fd..6e96afe9 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 190926c3..f4b13ebe 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 169b7d7d..9aa467d7 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 2b38d21f..4af928d4 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 64ee50f7..89bb437e 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 6b7958c7..bfa4d2e0 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 c6618698..ca6fb077 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 09d6504d..c545c7bf 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 92402758..6eda123d 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 4aa0b296..98f21668 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 ce0a2fc1..d5edc183 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 2b4ff842..a17f3be1 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 d8264d50..2f2dfa16 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 a4aac45f..f476fb07 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 f9e1f50b..86c59c39 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 1af15bf2..e2b67a1f 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 5c7ce5cd..e7b74dc7 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 5193f96a..37e4655c 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 d0f0aeb0..3e436349 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 e9e36d5c..d0bfb030 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 4be44678..62560809 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 92fbd257..fffdc7e5 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 dfdeec28..f0f20065 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 61680227..57e420d3 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 c336e9d2..1fb81e19 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 9f434e3a..f1624a09 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 db74d690..124bf4d2 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 5561cf11..fd4c8345 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 db15afa1..81fbd5c1 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 78d65379..c6839b2b 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 edbb6a4a..b70b9224 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 b9ed1665..0c00b0b9 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 87a570b6..b3246523 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 07676aef..26c9bbc9 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 d8a009d0..9ac726b6 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 0aea4322..537c5a4f 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 89b3ac3d..512763ed 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 1a6c09ac..111e9e0b 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 25a3f046..027e38ee 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 ea7e3e6f..3e995e9a 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 6686b3ef..ade7075e 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 ae3a5835..d45f5935 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 8b09ab8f..524d7e62 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 af36bd93..0b85a3b9 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 5ea96ca1..00001d8f 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 13cfb60f..f1ca1f7c 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 5af0624c..7f281a81 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 c759e6d8..d4e19901 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 61d71231..8af85783 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 ac2b9831..381e2d0a 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 681c3e8d..f4d34fc0 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 6c631da3..c37d3f78 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 44b14260..64568011 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 4d77125f..66e986b4 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 b217187d..0ac662ae 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 801d99a1..4ae6e833 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 4556770a..55159386 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 e6aadcef..49c1449f 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 2c51f709..5339b843 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 e58c4ba7..772fea47 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 6d49c1a7..117ba2ec 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 80fbe861..dccaf528 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 e6c29afb..5182e6bd 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 118651cf..fcc1dd55 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 b9f75322..b7d70d1c 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 36bc15f5..5341e6eb 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 f13cfdab..4cf2f806 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 6d56e819..c3898d75 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 5dbbf965..9d07027a 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 40436df2..cefa4a9e 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 d338019d..8399c581 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 6ab9f225..a5b04eeb 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 098aa817..49ff86fd 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 3c46a3e4..37f083d4 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 85eec19a..8f76fe6b 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 5229bf7f..7621f85c 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 1e6b063e..0cb87a57 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 3d1f7c03..fa606ff4 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 5deece75..b7a5bbf3 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 6d3f658b..08b3dda5 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 328914d1..d258f134 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 998f0382..e9b8a254 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 ec901af1..73092ef6 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 f7131f0b..0d1fd247 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 1dc6f4dd..a02c2bb4 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 727e7c73..139ee814 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 7104ea61..430eb722 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"