Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2008, 4:56:41 PM (16 years ago)
Author:
landauf
Message:
  • added ControllableEntity, the baseclass of all players, vehicles and ships.
  • moved Template to core
  • some changes in Camera
  • added 6 constants to WorldEntity to identify relative directions
  • changed vom Radian to Degree as default angle unit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/BaseObject.h

    r1950 r1989  
    8787            const std::string& getLevelfile() const;
    8888
     89            void addTemplate(const std::string& name);
     90            void addTemplate(Template* temp);
     91            /** @brief Returns the set of all aplied templates. */
     92            inline const std::set<Template*>& getTemplates() const
     93                { return this->templates_; }
     94
    8995            virtual inline void setNamespace(Namespace* ns) { this->namespace_ = ns; }
    9096            inline Namespace* getNamespace() const { return this->namespace_; }
     
    102108
    103109        private:
     110            Template* getTemplate(unsigned int index) const;
     111
    104112            bool bInitialized_;                         //!< True if the object was initialized (passed the object registration)
    105113            const Level* level_;                        //!< The level that loaded this object
    106114            std::string loaderIndentation_;             //!< Indentation of the debug output in the Loader
    107115            Namespace* namespace_;
     116            std::set<Template*> templates_;
    108117    };
    109118
Note: See TracChangeset for help on using the changeset viewer.