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; }
protected virtual bool UseFromInventory(Point target, GameCharacter user) { return false; }
protected virtual bool UseFromGrid(GameCharacter user) { return false; }
public virtual bool Use(Point location, GameCharacter user) { //switch (_currentState) //{ // case ITEM_STATE.IN_GRID: // break; // case ITEM_STATE.IN_INVENTORY: // break; //} return false; }