// Class for handling all functions of the player, and holding any relevant data // ================ // Member methods // Constructors public Player(Texture2D texture, Vector2 position, float rotation, TouchZone zone, float speed, Texture2D circleTexture, Vector2 circleStart) { m_car = new Sprite(texture, position, rotation); m_controlZone = new TouchZone(zone); m_speed = speed; m_circleStart = circleStart; m_circle = new Sprite(circleTexture, circleStart, 0); }
public TouchZone(TouchZone zone) { SetMin(zone.GetMin()); SetMax(zone.GetMax()); }