Пример #1
0
        public CurrentChampionState(float maxLife, float maxResource)
        {
            MaxLife         = maxLife;
            CurrentLife     = maxLife;
            MaxResource     = maxResource;
            CurrentResource = maxResource;

            Spell1 = new SpellCastInfo(TimeSpan.Zero);
            Spell2 = new SpellCastInfo(TimeSpan.Zero);
            Spell3 = new SpellCastInfo(TimeSpan.Zero);
            Spell4 = new SpellCastInfo(TimeSpan.Zero);
        }
Пример #2
0
		public CurrentChampionState(float maxLife, float maxResource)
        {
			MaxLife = maxLife;
			CurrentLife = maxLife;
			MaxResource = maxResource;
			CurrentResource = maxResource;

			Spell1 = new SpellCastInfo(TimeSpan.Zero);
			Spell2 = new SpellCastInfo(TimeSpan.Zero);
			Spell3 = new SpellCastInfo(TimeSpan.Zero);
			Spell4 = new SpellCastInfo(TimeSpan.Zero);
        }
Пример #3
0
		public SpellMenuItem(SpellCastInfo info, DrawableImage icon) : base(new DrawableImage("UIObjects/spellBox"),
		                              new DrawableImage("UIObjects/spellBox"),
		                              new DrawableImage("UIObjects/spellBox"))
        {
			Clickable = false;
			//StateClicking.Position = new Vector2(2, 2);
			AddChild(new DrawableImage("UIObjects/spellBoxDropShadow"){Position = new Vector2(2,2)},0);

			//ClickAction = () => Cast();

			Info = info;

			CoolDown = new DrawableRectangle(new Rectangle((int)NORMAL_WIDTH/2, (int)NORMAL_WIDTH, (int)NORMAL_WIDTH, (int)NORMAL_WIDTH), Color.Aqua);
			CoolDown.RelativeOrigin = new Vector2(0.5f,1f);
			CoolDown.Alpha = 0.3f;
			AddChild(CoolDown,3);

			Icon = icon;
			AddChild(Icon,2);
		}