Results 1 to 4 of 4
  1. #1
    yacoub is offline Member
    Join Date
    Feb 2008
    Posts
    1
    Rep Power
    0

    Default need help please!!!

    can any one tell me how to start this please.

    Now you will do one from scratch. Define a new object called Player which will represent a person in a game environment. Players should have at least these attributes: name (a String), location( a java.awt.Point object) and direction (an int). Set up appropriate constructors, get/set methods and toString() method. Finally, create a test program called PlayerTestProgram that creates three players and displays them (Perhaps start by saving the CustomerTestProgram.java as PlayerTestProgram.java and then modify the code).

  2. #2
    CaptainMorgan's Avatar
    CaptainMorgan is offline Moderator
    Join Date
    Dec 2007
    Location
    NewEngland, US
    Posts
    835
    Rep Power
    9

    Default

    can any one tell me how to start this please.
    No.

    Well, okay- actually I will- can you read and understand English? How about Java- do you know any Java? Did you absolutely forget to read what you posted?? Otherwise, everything you need is in your post! Get a beginning book on Java if you're new.

    This is your homework. If you don't want to do it- that's on you, but I'm sure not going to do it for you. What do you think this is? the Homework Forums? Get a book, read Sun's tutorials and use Google. Help yourself before we can help you.
    Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
    Want to voice your opinion on your IDE/Editor of choice? Vote now!
    Got a little Capt'n in you? (drink responsibly)

  3. #3
    ferranb is offline Member
    Join Date
    Jun 2008
    Posts
    22
    Rep Power
    0

    Default

    A little help:

    class Player
    {

    }

    ;-)

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    I agree with the others. Do some reading, make an attempt first before giving up and coming here. Otherwise you will never learn.

    Good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •