Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mon 01 Apr 2013 10:34:13 AM EDT
- Doyousketch2
- -------------------------------
- This is not an actual C++ source file.
- Its a text describing the source file structure of Minetest - as of ver 0.4.5 so far.
- Its simply saved as .cpp so it will highlight in your text editor
- (gEdit, Kate, Notepad++, or whatever you happen to use...)
- Structure of minetest source and support libraries found in /usr/include.
- Its just to show the heirarchy of where objects, variables, and whatnot get defined.
- main.cpp // Load settings, Mouse and Keyboard, Main Menu, run game, exit.
- #include "irrlicht.h"
- #include "IrrCompileConfig.h"
- #include "aabbox3d.h"
- #include "CDynamicMeshBuffer.h"
- #include "CIndexBuffer.h"
- #include "CMeshBuffer.h"
- #include "coreutil.h"
- #include "CVertexBuffer.h"
- #include "dimension2d.h"
- #include "ECullingTypes.h"
- #include "EDebugSceneTypes.h"
- #include "EDriverFeatures.h"
- #include "EDriverTypes.h"
- #include "EGUIAlignment.h"
- #include "EGUIElementTypes.h"
- #include "EHardwareBufferFlags.h"
- #include "EMaterialFlags.h"
- #include "EMaterialTypes.h"
- #include "EMeshWriterEnums.h"
- #include "EMessageBoxFlags.h"
- #include "ESceneNodeAnimatorTypes.h"
- #include "ESceneNodeTypes.h"
- #include "ETerrainElements.h"
- #include "fast_atof.h"
- #include "heapsort.h"
- #include "IAnimatedMesh.h"
- #include "IAnimatedMeshMD2.h"
- #include "IAnimatedMeshMD3.h"
- #include "IAnimatedMeshSceneNode.h"
- #include "IAttributeExchangingObject.h"
- #include "IAttributes.h"
- #include "IBillboardSceneNode.h"
- #include "IBillboardTextSceneNode.h"
- #include "IBoneSceneNode.h"
- #include "ICameraSceneNode.h"
- #include "ICursorControl.h"
- #include "IDummyTransformationSceneNode.h"
- #include "IDynamicMeshBuffer.h"
- #include "IEventReceiver.h"
- #include "IFileList.h"
- #include "IFileSystem.h"
- #include "IGeometryCreator.h"
- #include "IGPUProgrammingServices.h"
- #include "IGUIButton.h"
- #include "IGUICheckBox.h"
- #include "IGUIColorSelectDialog.h"
- #include "IGUIComboBox.h"
- #include "IGUIContextMenu.h"
- #include "IGUIEditBox.h"
- #include "IGUIElement.h"
- #include "IGUIElementFactory.h"
- #include "IGUIEnvironment.h"
- #include "IGUIFileOpenDialog.h"
- #include "IGUIFont.h"
- #include "IGUIFontBitmap.h"
- #include "IGUIImage.h"
- #include "IGUIInOutFader.h"
- #include "IGUIListBox.h"
- #include "IGUIMeshViewer.h"
- #include "IGUIScrollBar.h"
- #include "IGUISkin.h"
- #include "IGUISpinBox.h"
- #include "IGUISpriteBank.h"
- #include "IGUIStaticText.h"
- #include "IGUITabControl.h"
- #include "IGUITable.h"
- #include "IGUIToolbar.h"
- #include "IGUIWindow.h"
- #include "IGUITreeView.h"
- #include "IImage.h"
- #include "IImageLoader.h"
- #include "IImageWriter.h"
- #include "IIndexBuffer.h"
- #include "ILightSceneNode.h"
- #include "ILogger.h"
- #include "IMaterialRenderer.h"
- #include "IMaterialRendererServices.h"
- #include "IMesh.h"
- #include "IMeshBuffer.h"
- #include "IMeshCache.h"
- #include "IMeshLoader.h"
- #include "IMeshManipulator.h"
- #include "IMeshSceneNode.h"
- #include "IMeshWriter.h"
- #include "IMetaTriangleSelector.h"
- #include "IOSOperator.h"
- #include "IParticleSystemSceneNode.h" // also includes all emitters and attractors
- #include "IQ3LevelMesh.h"
- #include "IQ3Shader.h"
- #include "IReadFile.h"
- #include "IReferenceCounted.h"
- #include "irrArray.h"
- #include "IrrlichtDevice.h"
- #include "irrList.h"
- #include "irrMap.h"
- #include "irrMath.h"
- #include "irrString.h"
- #include "irrTypes.h"
- #include "path.h"
- #include "irrXML.h"
- #include "ISceneCollisionManager.h"
- #include "ISceneManager.h"
- #include "ISceneNode.h"
- #include "ISceneNodeAnimator.h"
- #include "ISceneNodeAnimatorCameraFPS.h"
- #include "ISceneNodeAnimatorCameraMaya.h"
- #include "ISceneNodeAnimatorCollisionResponse.h"
- #include "ISceneNodeAnimatorFactory.h"
- #include "ISceneNodeFactory.h"
- #include "ISceneUserDataSerializer.h"
- #include "IShaderConstantSetCallBack.h"
- #include "IShadowVolumeSceneNode.h"
- #include "ISkinnedMesh.h"
- #include "ITerrainSceneNode.h"
- #include "ITextSceneNode.h"
- #include "ITexture.h"
- #include "ITimer.h"
- #include "ITriangleSelector.h"
- #include "IVertexBuffer.h"
- #include "IVideoDriver.h"
- #include "IVideoModeList.h"
- #include "IVolumeLightSceneNode.h"
- #include "IWriteFile.h"
- #include "IXMLReader.h"
- #include "IXMLWriter.h"
- #include "ILightManager.h"
- #include "Keycodes.h"
- #include "line2d.h"
- #include "line3d.h"
- #include "matrix4.h"
- #include "plane3d.h"
- #include "position2d.h"
- #include "quaternion.h"
- #include "rect.h"
- #include "S3DVertex.h"
- #include "SAnimatedMesh.h"
- #include "SceneParameters.h"
- #include "SColor.h"
- #include "SExposedVideoData.h"
- #include "SIrrCreationParameters.h"
- #include "SKeyMap.h"
- #include "SLight.h"
- #include "SMaterial.h"
- #include "SMesh.h"
- #include "SMeshBuffer.h"
- #include "SMeshBufferLightMap.h"
- #include "SMeshBufferTangents.h"
- #include "SParticle.h"
- #include "SSharedMeshBuffer.h"
- #include "SSkinMeshBuffer.h"
- #include "SVertexIndex.h"
- #include "SViewFrustum.h"
- #include "triangle3d.h"
- #include "vector2d.h"
- #include "vector3d.h"
- #include "main.h"
- // Settings
- class Settings;
- extern Settings *g_settings;
- // Global profiler
- class Profiler;
- extern Profiler *g_profiler;
- // Debug streams
- #include <fstream>
- #include "mainmenumanager.h"
- #include "debug.h" // assert
- #include "modalMenu.h"
- #include "guiPauseMenu.h" // For IGameCallback
- #include <list>
- extern gui::IGUIEnvironment* guienv;
- extern gui::IGUIStaticText *guiroot;
- class MainMenuManager : public IMenuManager
- virtual void createdMenu(GUIModalMenu *menu)
- virtual void deletingMenu(GUIModalMenu *menu)
- extern MainMenuManager g_menumgr;
- extern bool noMenuActive();
- class MainGameCallback : public IGameCallback
- virtual void exitToOS
- virtual void disconnect
- virtual void changePassword
- virtual void changeVolume
- extern MainGameCallback *g_gamecallback;
- #include <iostream>
- Narrow characters (char)
- cin // standard input stream
- cout // standard output stream
- cerr // standard output stream for erros
- clog // standard output stream for logging
- Wide characters (wchar_t)
- wcin
- wcout
- wcerr
- wclog
- #include <fstream>
- Public members
- (constructor) // Construct object and optionally open file (public member function)
- rdbuf // Get the associated filebuf object (public member function)
- is_open // Check if a file is open (public member function)
- open // Open file (public member function)
- close // Close file (public member function)
- Members inherited from istream
- operator>> // Extract formatted input (public member function )
- gcount // Get character count (public member function )
- get // Get characters (public member function )
- getline // Get line (public member function )
- ignore // Extract and discard characters (public member function )
- peek // Peek next character (public member function )
- read // Read block of data (public member function )
- readsome // Read data available in buffer (public member function )
- putback // Put character back (public member function )
- unget // Unget character (public member function )
- tellg // Get position in input sequence (public member function )
- seekg // Set position in input sequence (public member function )
- sync // Synchronize input buffer (public member function )
- sentry // Prepare stream for input (public member class )
- Members inherited from ostream
- operator<< // Insert formatted output (public member function )
- put // Put character (public member function )
- write // Write block of data (public member function )
- tellp // Get position in output sequence (public member function )
- seekp // Set position in output sequence (public member function )
- flush // Flush output stream buffer (public member function )
- sentry // Prepare stream for output (public member class )
- Member functions inherited from ios
- good // Check whether state of stream is good (public member function )
- eof // Check whether eofbit is set (public member function )
- fail // Check whether either failbit or badbit is set (public member function )
- bad // Check whether badbit is set (public member function )
- operator! // Evaluate stream (not) (public member function )
- operator void* // Evaluate stream (public member function )
- rdstate // Get error state flags (public member function )
- setstate // Set error state flag (public member function )
- clear // Set error state flags (public member function )
- copyfmt // Copy formatting information (public member function )
- fill // Get/set fill character (public member function )
- exceptions // Get/set exceptions mask (public member function )
- imbue // Imbue locale (public member function )
- tie // Get/set tied stream (public member function )
- narrow // Narrow character (public member function )
- widen // Widen character (public member function )
- Member functions inherited from ios_base
- flags // Get/set format flags (public member function )
- setf // Set specific format flags (public member function )
- unsetf // Clear specific format flags (public member function )
- precision // Get/Set floating-point decimal precision (public member function )
- width // Get/set field width (public member function )
- imbue // Imbue locale (public member function )
- getloc // Get current locale (public member function )
- xalloc // Get new index for extensible array [static] (public static member function )
- iword // Get integer element of extensible array (public member function )
- pword // Get pointer element of extensible array (public member function )
- register_callback // Register event callback function (public member function )
- sync_with_stdio // Toggle synchronization with cstdio streams [static] (public static member function )
- #include <locale.h>
- Facet management:
- use_facet // Access facet of locale (function template)
- has_facet // Check if locale has facet (function template)
- Convenience interfaces (template versions of the cctype functions):
- isspace // Check if character is a white-space (function )
- isprint // Check if character is printable (function )
- iscntrl // Check if character is a control character (function )
- isupper // Check if character is uppercase letter (function )
- islower // Check if character is lowercase letter (function )
- isalpha // Check if character is alphabetic (function )
- isdigit // Check if character is decimal digit (function )
- ispunct // Check if character is a punctuation character (function )
- isxdigit // Check if character is hexadecimal digit (function )
- isalnum // Check if character is alphanumeric (function )
- isgraph // Check if character has graphical representation (function )
- Classes
- locale // Locale class (class )
- Standard facets:
- ctype // Character type facet (class template)
- ctype_byname // Character type facet (class template)
- codecvt // Convert codeset facet (class template)
- codecvt_byname // Convert codeset facet (class template)
- num_get // Facet to parse numeric values (class template )
- num_put // Facet to format numeric values (class template )
- numpunct // Numeric punctuation facet (class template)
- numpunct_byname // Numeric puntuation facet (class template)
- collate // Facet to compare and hash strings (class template)
- collate_byname // Facet to compare and hash strings (class template)
- time_get // Facet to parse dates and times (class template)
- time_get_byname // Facet to parse dates and times (class template)
- time_put // Facet to format dates and times (class template)
- time_put_byname // Facet to format dates and times (class template)
- money_get // Facet to parse monetary expressions (class template)
- money_put // Facet to format monetary expressions (class template)
- moneypunct // Monetary punctuation facet (class template)
- moneypunct_byname // Monetary punctuation facet (class template)
- messages // Facet to access message catalogs (class template)
- messages_byname // Facet to access message catalogs (class template)
- Base classes for standard facets (defining member types):
- ctype_base // Base class for ctype (class)
- codecvt_base // Base class for codecvt (class)
- time_base // Base class for time_get (class)
- money_base // Base class for moneypunct (class)
- #include "irrlichttypes_extrabloated.h"
- #include "irrlichttypes_bloated.h"
- #include "irrlichttypes.h"
- #include <irrTypes.h>
- using namespace irr;
- // Irrlicht 1.8+ defines 64bit unsigned symbol in irrTypes.h
- #if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
- #ifdef _MSC_VER
- // Windows
- typedef long long s64;
- typedef unsigned long long u64;
- #else
- // Posix
- #include <stdint.h>
- typedef int64_t s64;
- typedef uint64_t u64;
- #include "irr_v2d.h"
- #include "irr_v3d.h"
- #include "irr_aabb3d.h"
- #include <irrMap.h>
- #include <irrList.h>
- #include <irrArray.h>
- #include <SColor.h>
- #ifndef SERVER
- #include <IMesh.h>
- #include <IImage.h>
- #include <IrrlichtDevice.h>
- #include <IMeshSceneNode.h>
- #include <SMesh.h>
- #include <ISceneManager.h>
- #include <IMeshBuffer.h>
- #include <SMeshBuffer.h>
- #include <IGUIElement.h>
- #include <IGUIEnvironment.h>
- #endif
- #include "debug.h"
- #include <stdio.h>
- #include <jmutex.h>
- #include <jmutexautolock.h>
- #include <iostream>
- #include "irrlichttypes.h"
- #include <irrMap.h>
- #include "threads.h"
- #include "gettime.h"
- #include "exceptions.h"
- #include <map>
- #ifdef _WIN32
- #define WIN32_LEAN_AND_MEAN
- #ifndef _WIN32_WINNT
- #define _WIN32_WINNT 0x0500
- #endif
- #include <windows.h>
- #ifdef _MSC_VER
- #include <eh.h>
- #endif
- #define DTIME (getTimestamp()+": ")
- #define DEBUGSTREAM_COUNT
- extern FILE *g_debugstreams[DEBUGSTREAM_COUNT];
- extern void debugstreams_init(bool disable_stderr, const char *filename);
- extern void debugstreams_deinit();
- #define DEBUGPRINT(...)\
- {\
- for(int i=0; i<DEBUGSTREAM_COUNT; i++)\
- {\
- if(g_debugstreams[i] != NULL){\
- fprintf(g_debugstreams[i], __VA_ARGS__);\
- fflush(g_debugstreams[i]);\
- #include "test.h"
- #include "clouds.h"
- #include "server.h"
- #include "constants.h"
- #include "porting.h"
- #include "gettime.h"
- #include "guiMessageMenu.h"
- #include "filesys.h"
- #include "config.h"
- #include "guiMainMenu.h"
- #include "game.h"
- #include "keycode.h"
- #include "tile.h"
- #include "chat.h"
- #include "defaultsettings.h"
- #include "gettext.h"
- #include "settings.h"
- #include "profiler.h"
- #include "log.h"
- #include "mods.h"
- #if USE_FREETYPE
- #include "xCGUITTFont.h"
- #endif
- #include "util/string.h"
- #include "subgame.h"
- #include "quicktune.h"
- #include "serverlist.h"
- // Note: The C++ reference material included within < > was taken from cplusplus.com
- // © cplusplus.com, 2000-2013 - All rights reserved - v3.1
- // Fair Use notice - for educational purposes only.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement