Exemplo n.º 1
0
 public Item(string name, World world, Vector2 worldIndex, IUseStrategy useStrategy, IGetStrategy getStrategy, IGiveStrategy giveStrategy, ItemCategories itemCategory, ItemTypes itemType)
 {
     Name          = name;
     _world        = world;
     WorldIndex    = worldIndex;
     _useStrategy  = useStrategy;
     _getStrategy  = getStrategy;
     _giveStrategy = giveStrategy;
     ItemCategory  = itemCategory;
     ItemType      = itemType;
 }
Exemplo n.º 2
0
 public Item(string name, World world, Vector2 worldIndex, IUseStrategy useStrategy, IGetStrategy getStrategy, IGiveStrategy giveStrategy, ItemCategories itemCategory, ItemTypes itemType)
 {
     Name = name;
     _world = world;
     WorldIndex = worldIndex;
     _useStrategy = useStrategy;
     _getStrategy = getStrategy;
     _giveStrategy = giveStrategy;
     ItemCategory = itemCategory;
     ItemType = itemType;
 }
Exemplo n.º 3
0
 public Weapon(string name, Vector2 worldIndex, World world, IUseStrategy useStrategy, IGetStrategy getStrategy, IGiveStrategy giveStrategy, List<IAttackStrategy> attacks, int range)
 {
     Name = name;
     WorldIndex = worldIndex;
     _useStrategy = useStrategy;
     _getStrategy = getStrategy;
     _giveStrategy = giveStrategy;
     _attacks = attacks;
     _world = world;
     ItemCategory = ItemCategories.Weapon;
     ItemType = ItemTypes.Diamond;
     Range = range;
 }
Exemplo n.º 4
0
 public Weapon(string name, Vector2 worldIndex, World world, IUseStrategy useStrategy, IGetStrategy getStrategy, IGiveStrategy giveStrategy, List <IAttackStrategy> attacks, int range)
 {
     Name          = name;
     WorldIndex    = worldIndex;
     _useStrategy  = useStrategy;
     _getStrategy  = getStrategy;
     _giveStrategy = giveStrategy;
     _attacks      = attacks;
     _world        = world;
     ItemCategory  = ItemCategories.Weapon;
     ItemType      = ItemTypes.Diamond;
     Range         = range;
 }