text: #pragma once
  #include "Component.h"
  #include <Vector2.h>
  
  class moveComponent :
  	public Component
  {
  public:
  	moveComponent(const char* name = "MoveComponent") : Component::Component(name) {};
  
  	/// <summary>
  	/// Get the current speed and direction of this actor
  	/// </summary>
  	/// <returns></returns>
  	MathLibrary::Vector2 getVelocity() { return m_velocity; }
  
  	/// <summary>
  	/// Set the current speed and direction of this actor
  	/// </summary>
  	/// <param name="velocity">The new velocity of this actor</param>
  	void setVelocity(MathLibrary::Vector2 velocity) { m_velocity = velocity; }
  
  	/// <summary>
  	/// Get the maximum magnitude of this actors velocity vector
  	/// </summary>
  	float getMaxSpeed() { return m_maxSpeed; }
  
  	/// <summary>
  	/// Set the maximum magnitude of this actors velocity vector
  	/// </summary>
  	/// <param name="maxSpeed">The max speed</param>
  	void setMaxSpeed(float maxSpeed) { m_maxSpeed = maxSpeed; }
  	
  	//Inherited from component class
  	void update(float deltaTime);
  
  private:
  	float m_maxSpeed;
  	MathLibrary::Vector2 m_velocity;
  };
  
  