/* ************************************************************************** */ /* _____ */ /* Object.hpp | ___| _ ____ ___ */ /* Project : C-Engine | |_ | | | __| / _ \ */ /* | _| | | | |= | __/ */ /* By: Fife |_| |_| |_| \___| */ /* */ /* */ /* ************************************************************************** */ #ifndef CENGINE_OBJECT_HPP #define CENGINE_OBJECT_HPP #include "..\Rework\CEngine.hpp" class Object { public: Object(); //Constructeur ~Object(); void AffectEngine(Engine * EV); void AffectTag(char * v); void Enable(); void Disable(); void AddRigidBody(); //Ajout un RigidBody //Accesseur Engine * GetEngine(); Transform * GetTransform(); RigidBody * GetRigidBody(); Render * GetRender(); Script * GetScript(); char * GetTag(); bool GetEnable(); //Fonction pour les scripts Object * GetObjectCollisionTag( char* v , int x = 0 , int y = 0); bool GetCollisionTag( char * v , int x = 0 , int y = 0 ); bool IsOnScreen(); private: bool Collision(int id); Transform * OTransform; Render * ORender; RigidBody * ORigidBody; Script * OScript; Engine * Conteneur; char * tag; bool enable; }; #endif