PotatoPlan/Game1/Sources/Crops.cs

47 lines
740 B
C#
Raw Normal View History

using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
class Crops
{
public int Status;
private int Timer;
private Random r;
public int x;
public int y;
public void updateCrop()
{
if (Status != 0)
{
Timer--;
}
}
public int getCropTimer()
{
return Timer;
}
public int getStatus()
{
return Status;
}
public void setStatus(int newStatus)
{
Status = newStatus;
}
public void setPosition(int newx, int newy)
{
x = newx;
y = newy;
}
}