Esempio n. 1
0
 internal void DrawOnShiftInterface(ShiftInterface shiftInterface)
 {
     Particles.ForEach(p => shiftInterface.drawOnOverlay(p));
     Projectiles.ForEach(p => shiftInterface.drawOnOverlay(p));
     Collectables.ForEach(c => shiftInterface.drawOnOverlay(c));
     Enemies.ForEach(e => shiftInterface.drawOnOverlay(e));
     shiftInterface.drawOnOverlay(MainPlayer);
 }
Esempio n. 2
0
        public ShiftButton(ShiftInterface inter, Rectangle rectangle, int index, ShiftDirection direction)
            : base(rectangle, rotationForShiftDirection(direction), arrowButton, arrowButtonPressed)
        {
            _direction = direction;
            _index     = index;
            _interface = inter;

            setTargets(ButtonWasToggledDown, buttonWasToggledUp);
        }