write adventure game in java

Page 1 of 1

2 Replies - 1227 Views - Last Post: 20 April 2009 - 07:06 PM Rate Topic: -----

#1 Banighafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-April 09

write adventure game in java

Post icon  Posted 20 April 2009 - 05:50 PM

Hi
I have been asked to write adventure game in java. I do not know how to create player and set it to a location. I create the player class and site class but i do not know how to continue. any one can help??
Is This A Good Question/Topic? 0
  • +

Replies To: write adventure game in java

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: write adventure game in java

Posted 20 April 2009 - 06:08 PM

You don;t expect us to write the code do you ?

Rule #4 of this forum was displayed to you when you post your topic:

[rules][/rules]

You can try to Google for what you want
Was This Post Helpful? 0
  • +
  • -

#3 Banighafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-April 09

Re: write adventure game in java

Posted 20 April 2009 - 07:06 PM

View Postpbl, on 20 Apr, 2009 - 05:08 PM, said:

You don;t expect us to write the code do you ?

Rule #4 of this forum was displayed to you when you post your topic:

[rules][/rules]

You can try to Google for what you want



Hi
Thanks for your reply.
I have big program with more that 10 classes. I will try to show you what I mean.

I have world class, player class, site class, location class.

In my main class I have to create new world and new player and set the player to the location . I create them but I do not know how to set the player in the location. The location is an array in the location class (Location location) which is (x, y, z) and there is my code.


public class WorldBuilderFacade implements WorldBuilderModel 
{
	
	// This method will create new world and new player
	public WorldBuilderFacade (String name, int value, int carryingCapacity, Location location)
	{
		World world = new World();
		world.createWorld("World", 0, 0);
		
		Plyer player = new Player()
		player.createPlayer("Player1", 0, 0, 1,1,1);
		
	}




The problem is in setting the player to the location!!

Thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1