Example #1
0
        public SymbolsImage GetWorldImage(IImagesStorage storage)
        {
            var body = storage.GetImage(configuration.Image);
            var directionImageName = GetWorldImageName();
            var directionImage     = storage.GetImage(directionImageName);

            return(SymbolsImage.Combine(body, directionImage));
        }
Example #2
0
        private SymbolsImage GetEquippedImage(ItemMaterial material, IArmorPieceConfiguration config)
        {
            if (string.IsNullOrEmpty(config.EquippedImage))
            {
                return(null);
            }

            var image = imagesStorage.GetImage(config.EquippedImage);

            return(ItemRecolorHelper.RecolorItemImage(image, material));
        }
Example #3
0
 public SymbolsImage GetWorldImage(IImagesStorage storage)
 {
     if (energyLeft >= HighEnergy)
     {
         return(storage.GetImage(ImageHighEnergy));
     }
     if (energyLeft >= MediumEnergy)
     {
         return(storage.GetImage(ImageMediumEnergy));
     }
     return(storage.GetImage(ImageLowEnergy));
 }
Example #4
0
        public SymbolsImage GetWorldImage(IImagesStorage storage)
        {
            var templateImage = storage.GetImage("ItemsOnGround_Potion");
            var palette       = GetPotionPalette();

            return(SymbolsImage.Recolor(templateImage, palette));
        }
Example #5
0
        public SymbolsImage GetWorldImage(IImagesStorage storage)
        {
            if (Volume >= Configuration.MaxVolumeBeforeSpread)
            {
                return(storage.GetImage(ImageBig));
            }

            var halfSpread = Configuration.MaxVolumeBeforeSpread / 2;

            if (Volume >= halfSpread)
            {
                return(storage.GetImage(ImageMedium));
            }

            return(storage.GetImage(ImageSmall));
        }
Example #6
0
        public SymbolsImage GetInventoryImage(IImagesStorage storage)
        {
            var imageTemplateName = GetInventoryImageTemplateName();
            var templateImage     = storage.GetImage(imageTemplateName);
            var palette           = GetPotionPalette();

            return(SymbolsImage.Recolor(templateImage, palette));
        }
Example #7
0
 private static IItem CreateMeat(IImagesStorage storage)
 {
     return(new FoodItem(new FoodItemConfiguration
     {
         Key = "food_meat",
         Name = "Meat",
         HungerDecrease = 7,
         Rareness = ItemRareness.Common,
         Weight = 500,
         InventoryImage = storage.GetImage("Food_Meat"),
         WorldImage = storage.GetImage("ItemsOnGround_Food_Meat"),
         Description = new[]
         {
             "A big piece of meat. It smells good."
         }
     }));
 }
Example #8
0
 private static IItem CreateApple(IImagesStorage storage)
 {
     return(new FoodItem(new FoodItemConfiguration
     {
         Key = "food_apple",
         Name = "Apple",
         HungerDecrease = 3,
         Rareness = ItemRareness.Common,
         Weight = 200,
         InventoryImage = storage.GetImage("Food_Apple"),
         WorldImage = storage.GetImage("ItemsOnGround_Food_Apple"),
         Description = new []
         {
             "A sweet red apple. Juicy and tasty."
         }
     }));
 }
Example #9
0
        public SymbolsImage GetWorldImage(IImagesStorage storage)
        {
            if (Closed)
            {
                if (HasConnectedTile(0, -1) && HasConnectedTile(0, 1))
                {
                    return(storage.GetImage(ImageClosedVertical));
                }

                return(storage.GetImage(ImageClosedHorizontal));
            }

            if (HasConnectedTile(0, -1) && HasConnectedTile(0, 1))
            {
                return(storage.GetImage(ImageOpenedVertical));
            }

            return(storage.GetImage(ImageOpenedHorizontal));
        }
Example #10
0
        public SymbolsImage GetWorldImage(IImagesStorage storage)
        {
            if (!HasConnectedTile(0, 1) && !HasConnectedTile(1, 0))
            {
                return(animationsManager.GetImage(storage, ImageBottomRight));
            }

            if (!HasConnectedTile(0, 1))
            {
                return(animationsManager.GetImage(storage, ImageBottom));
            }

            if (!HasConnectedTile(1, 0))
            {
                return(animationsManager.GetImage(storage, ImageRight));
            }

            if (!HasConnectedTile(1, 1))
            {
                return(storage.GetImage(ImageCorner));
            }

            return(storage.GetImage(ImageNormal));
        }
Example #11
0
        private SymbolsImage GetMaterialColoredImage(string imageName, ItemMaterial material)
        {
            var image = imagesStorage.GetImage(imageName);

            return(ItemRecolorHelper.RecolorItemImage(image, material));
        }
Example #12
0
 public SymbolsImage GetWorldImage(IImagesStorage storage)
 {
     return(storage.GetImage(ImageName));
 }
Example #13
0
 public SymbolsImage GetInventoryImage(IImagesStorage storage)
 {
     return(storage.GetImage(InventoryImageName));
 }
Example #14
0
        public SymbolsImage GetWorldImage(IImagesStorage storage)
        {
            var imageName = GetWorldImageName();

            return(storage.GetImage(imageName));
        }
Example #15
0
 public override SymbolsImage GetEffectImage(int width, int height, IImagesStorage imagesStorage)
 {
     return(imagesStorage.GetImage(ImageName));
 }
Example #16
0
 public SymbolsImage GetWorldImage(IImagesStorage storage)
 {
     return(storage.GetImage("ItemsOnGround_Resource_Wood"));
 }
Example #17
0
 public override SymbolsImage GetWorldImage(IImagesStorage storage)
 {
     return(RecolorImage(storage.GetImage("ItemsOnGround_Weapon_Mace")));
 }
Example #18
0
 public override SymbolsImage GetInventoryImage(IImagesStorage storage)
 {
     return(storage.GetImage("Weapon_BanHammer"));
 }
Example #19
0
 public override SymbolsImage GetWorldImage(IImagesStorage storage)
 {
     return(storage.GetImage(ImageWorld));
 }
Example #20
0
        private SymbolsImage ApplyStatusImage(SymbolsImage initialImage, string statusImageName)
        {
            var statusImage = imagesStorage.GetImage(statusImageName);

            return(SymbolsImage.Combine(initialImage, statusImage));
        }
Example #21
0
 public SymbolsImage GetWorldImage(IImagesStorage storage)
 {
     return(storage.GetImage("Decoratives_Stones_Small"));
 }
Example #22
0
 protected override SymbolsImage GetRightEquippedImage(IImagesStorage storage)
 {
     return(RecolorImage(storage.GetImage("ItemOnPlayer_Weapon_Right_Mace")));
 }
Example #23
0
 public override SymbolsImage GetInventoryImage(IImagesStorage storage)
 {
     return(storage.GetImage(inventoryImageName));
 }
Example #24
0
 public SymbolsImage GetInventoryImage(IImagesStorage storage)
 {
     return(storage.GetImage("Item_Resource_Stone"));
 }
Example #25
0
        private SymbolsImage GetWorldImage(Color mainImageColor)
        {
            var imageInit = imagesStorage.GetImage(WorldImageName);

            return(ItemRecolorHelper.RecolorSpellBookGroundImage(imageInit, mainImageColor));
        }