示例#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;
 }
示例#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;
 }
示例#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;
 }
示例#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;
 }