42 lines
694 B
C#
42 lines
694 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
class Items
|
|
{
|
|
private String itemType;
|
|
private int Weight;
|
|
private int Index;
|
|
|
|
|
|
public Items(String newItemType, int newWeight, int newIndex)
|
|
{
|
|
itemType = newItemType;
|
|
Weight = newWeight;
|
|
Index = newIndex;
|
|
}
|
|
|
|
public void setItem(Items newItem)
|
|
{
|
|
itemType = newItem.itemType;
|
|
Weight = newItem.Weight;
|
|
}
|
|
|
|
public String getItemType()
|
|
{
|
|
return itemType;
|
|
}
|
|
|
|
public int getWeight()
|
|
{
|
|
return Weight;
|
|
}
|
|
|
|
public int getIndex()
|
|
{
|
|
return Index;
|
|
}
|
|
} |