albert albert

albert albert

  • NA
  • 524
  • 0

Picking up the sword

Feb 9 2012 8:53 AM
I am now bussy with picking up the sword.

the player picks up the sword and the picture will be shown in the inventory and the picture of the sword u picked up will be invisible. and u see the pictuce of the player with the sword in the dungeon.

I have this method:

[code]
 public Point Move(Direction direction)
  {
  string weapon;
  base.location = Move(direction, game.Boundaries,location);
 
 
  if (!game.weaponInRoom.PickedUp)
  {
  //rest of the logic. 

  if (equippedweapon.Nearby(location,1))
  {
  equippedweapon.PickedUP();
  //if (equippedweapon.PickedUP() == game.CheckPlayerInventory(equippedweapon.Name) )
  //{ 
  //}
  //else
  inventory.Add(equippedweapon);
  if (weapons.Contains(1))
  {
 
  }
  }
  }
 
  return location;
 
 
 
  }//end method
[code]

Attachment: thequest.rar

Answers (21)