Coding the TransformComponent class
Create a new header file in the Header Files/GameObjects
filter called TransformComponent.h
and add the following code:
#pragma once #include "Component.h" #include<SFML/Graphics.hpp> using namespace sf; class Component; class TransformComponent : public Component { private: const string m_Type = "transform"; Vector2f m_Location; float m_Height; float m_Width; public: TransformComponent( float width, float height, Vector2f location); Vector2f& getLocation(); Vector2f getSize(); /**************************************************** ***************************************************** From Component interface ...