forked from s425077/PotatoPlan
37 lines
697 B
C#
37 lines
697 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|