Пример #1
0
 public Dropoff(DropoffProperties properties, Rectangle storeSlot)
     : base(storeSlot)
 {
     CurrentState = DropoffState.Unordered;
     dropoffProperties = properties;
     ResetToDefaultProperties();
 }
        public static DropoffProperties GetPropertiesHealthHigh(ContentManager content)
        {
            DropoffProperties properties = new DropoffProperties();

            properties.type = DropoffType.Dropoff_Health_High;

            properties.delay = 3;
            properties.duration = 3;
            properties.useCount = 1;//?

            properties.shopTexture = content.Load<Texture2D>("Graphics//Dropoffs//health_2");
            properties.draggingTexture = content.Load<Texture2D>("Graphics//Dropoffs//health_2");
            properties.placedTexture = content.Load<Texture2D>("Graphics//Dropoffs//Dropoff_FirstAid_Basic");
            properties.navTexture = content.Load<Texture2D>("Graphics//Dropoffs//resourcesSign_health_2");

            return properties;
        }
        public static DropoffProperties GetPropertiesFoodMedium(ContentManager content)
        {
            DropoffProperties properties = new DropoffProperties();

            properties.type = DropoffType.Dropoff_Food_Medium;

            properties.delay = 2;
            properties.duration = 2;
            properties.useCount = 1;//?

            properties.shopTexture = content.Load<Texture2D>("Graphics//Dropoffs//food_1");
            properties.draggingTexture = content.Load<Texture2D>("Graphics//Dropoffs//food_1");
            properties.placedTexture = content.Load<Texture2D>("Graphics//Dropoffs//Dropoff_FirstAid_Basic");
            properties.navTexture = content.Load<Texture2D>("Graphics//Dropoffs//resourcesSign_food_1");

            return properties;
        }
        public static DropoffProperties GetPropertiesWaterLow(ContentManager content)
        {
            DropoffProperties properties = new DropoffProperties();

            properties.type = DropoffType.Dropoff_Water_Low;

            properties.delay = 1;
            properties.duration = 1;
            properties.useCount = 1;//?

            properties.shopTexture = content.Load<Texture2D>("Graphics//Dropoffs//water_0");
            properties.draggingTexture = content.Load<Texture2D>("Graphics//Dropoffs//water_0");
            properties.placedTexture = content.Load<Texture2D>("Graphics//Dropoffs//Dropoff_FirstAid_Basic");
            properties.navTexture = content.Load<Texture2D>("Graphics//Dropoffs//resourcesSign_Water_0");

            return properties;
        }