PotatoPlan/Game1/Sources/Objects/tractorPositionCorrector.cs

37 lines
697 B
C#
Raw Permalink Normal View History

2020-05-03 13:05:05 +02:00
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
class tractorPositionCorrector
{
Vector2 mPosition;
float mTractorSpeed;
public tractorPositionCorrector(Vector2 position, float TractorSpeed)
{
mPosition = position;
mTractorSpeed = TractorSpeed;
}
public Vector2 getPosition()
{
return mPosition;
}
public float getTractorSpeed()
{
return mTractorSpeed;
}
public void setPosition(float x, float y)
{
mPosition = new Vector2(x,y);
}
public void setTractorSpeed(float newSpeed)
{
mTractorSpeed = newSpeed;
}
}