TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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
Reply
Answers (
21
)
Update Move player with Move Class
Add Record to SDF File