protected GrabableItemFactoryBase(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer)
 {
     Name      = name;
     Weight    = weight;
     combos    = new HashSet <IActionFactory>(attackCombo);
     locations = new HashSet <IStorageType>(carryLocation);
     Renderer  = renderer;
 }
Пример #2
0
        public ChildTeachingTool()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            menu = new TopMenu(Services);

            IsMouseVisible = true;

            textRenderer = new TextRenderer();
            textureRenderer = new TextureRenderer();
            //            Services.AddService(typeof(GraphicsDevice), GraphicsDevice);
            Services.AddService(typeof(ITextRenderer), textRenderer);
            Services.AddService(typeof(ITextureRenderer), textureRenderer);
        }
Пример #3
0
 public WeaponItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, int?deltaEnergy, WeaponClass weaponClass, int kineticEnergy, int shootDamage, int strength, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
     DeltaEnergy   = deltaEnergy;
     Class         = weaponClass;
     KineticEnergy = kineticEnergy;
     ShootDamage   = shootDamage;
     Strength      = strength;
 }
Пример #4
0
 public virtual void Initialize()
 {
     if (!initialized)
     {
         this.textureRenderer = (ITextureRenderer)services.GetService(typeof(ITextureRenderer));
         LoadContent();
         initialized = !initialized;
     }
 }
Пример #5
0
 public ScrollItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
 }
Пример #6
0
 public ClothItemFactory(string name, int weight, IReadOnlyList <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, int armorStrength, int sharpResistance, bool isShield, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
     ArmorStrength   = armorStrength;
     SharpResistance = sharpResistance;
     IsShield        = isShield;
 }
 public TorchWeaponItemFactory(string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, int?deltaEnergy, WeaponClass weaponClass, int kineticEnergy, int shootDamage, int strength, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, deltaEnergy, weaponClass, kineticEnergy, shootDamage, strength, renderer)
 {
 }
Пример #8
0
 public WaterMiscFactory(int waterValuePerCharge, string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
     WaterValuePerCharge = waterValuePerCharge;
 }
Пример #9
0
 public FoodMiscFactory(int foodValue, string name, int weight, IEnumerable <IActionFactory> attackCombo, IEnumerable <IStorageType> carryLocation, ITextureRenderer renderer) : base(name, weight, attackCombo, carryLocation, renderer)
 {
     FoodValue = foodValue;
 }