Example #1
0
        public override bool Use(Point location, GameCharacter user)
        {
            bool block_placed = false;
            if (_currentState == ITEM_STATE.IN_INVENTORY)
            {
                block_placed = Game.GridInstane.PlaceObject(location.X, location.Y, this.ShallowCopy());
                if (block_placed == true)
                    ConsumeOne();
            }

            return block_placed;
        }
Example #2
0
 protected virtual bool UseFromInventory(Point target, GameCharacter user)
 {
     return false;
 }
Example #3
0
 protected virtual bool UseFromGrid(GameCharacter user)
 {
     return false;
 }
Example #4
0
        public virtual bool Use(Point location, GameCharacter user)
        {
            //switch (_currentState)
            //{
            //    case ITEM_STATE.IN_GRID:
            //        break;

            //    case ITEM_STATE.IN_INVENTORY:
            //        break;

            //}
            return false;
        }