Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

IObject.h

Go to the documentation of this file.
00001 // Mortic - A game engine for the Expanses of Naryan.
00002 // Copyright (C) 2006  Aaron Griffith
00003 // This file is under the LGPL. See mortic.h for more information.
00004 
00006 //   ____  _     _           _                                                //
00007 //  / __ \| |   (_)         | |                                               //
00008 // | |  | | |__  _  ___  ___| |_                                              //
00009 // | |  | | '_ \| |/ _ \/ __| __|                                             //
00010 // | |__| | |_) | |  __/ (__| |_                                              //
00011 //  \____/|_.__/| |\___|\___|\__|                                             //
00012 //             _/ |                                                           //
00013 //            |__/                                                            //
00014 // IObject.h - Interface of Object                                            //
00016 
00017 #ifndef __IObject_h_INCLUDED__
00018 #define __IObject_h_INCLUDED__
00019 
00020 #include <string>
00021 
00022 namespace mortic
00023 {
00024     class IRoot;
00025     
00027     
00033     class IObject
00034     {
00035     public:
00037         
00041         IObject();
00042         
00044         
00050         IObject(IRoot* root, std::string name);
00051         
00053         virtual ~IObject();
00054 
00056         
00064         std::string getName();
00065         
00067         
00072         unsigned int getID();
00073         
00075         
00080         void setName(std::string name);
00081 
00083         
00092         void grab();
00093         
00095         
00098         void drop();
00099         
00101         
00106         unsigned int getInstances();
00107     private:
00108         IRoot* _root;
00109         std::string _name;
00110         unsigned int _id;
00111         unsigned int instances;
00112     };
00113 
00114 }; // namespace mortic
00115 
00116 #include "IRoot.h" // Don't ask me why, it works here
00117 
00118 #endif // __IObject_h_INCLUDED__

Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4