Ejemplo n.º 1
0
 public override void Run(Actor sender)
 {
     /*if (_amount > 0 && active)
     {
         if (sender.GetType() == Engine.player.GetType())
         {
             if (Keyboard.IsKeyPressed(Keyboard.Key.Space))
             {
                 active = false;
                 Engine.hud.showItemModal(this);
             }
         }
         else
         {
             sender.inventory.Add(item);
             if(sender.activeWeapon == null)
             {
                 sender.activeWeapon = (Items.Weapon)sender.inventory[sender.inventory.Count];
             }
             Console.WriteLine("[" + name + "] Added " + _item + " to inventory of " + sender.name);
             _amount--;
         }
     }*/
     Log.WriteError("Not currently implemented in this refactoring!");
 }
Ejemplo n.º 2
0
        public virtual void Fire(Actor sender)
        {

        }
Ejemplo n.º 3
0
 public override void Run(Actor sender)
 {
     sender.Warp(new Vector2i(_destinationX, _destinationY));
 }
Ejemplo n.º 4
0
 public override void Run(Actor sender)
 {
     Console.WriteLine("[Trigger] Map change to \"" + _map + "\" initiated.");
         //TODO: implement map changing
 }
Ejemplo n.º 5
0
        public virtual void Run(Actor sender)
        {

        }
Ejemplo n.º 6
0
 public override void Run(Actor sender)
 {
     sender.setHealth(sender.health + _healPerTick);
 }
Ejemplo n.º 7
0
        //for using triggergiveitem statically (in a way, it doesn't have to have a presence in the map now)
        public virtual void Run(Actor sender, bool checkForInput)
        {

        }