Search:

Type: Posts; User: mortalc

Search: Search took 0.08 seconds.

  1. Replies
    23
    Views
    3,167

    Re: Object or Class?

    Thankyou.
    I think I will start with something less ambitious - ideas?
    I will certainly refer to here when I do get started on my game.

    Ed:
    I've had an idea. Basically, it takes place on a 50x50...
  2. Replies
    23
    Views
    3,167

    Re: Object or Class?

    Is my code right?

    Also, does the tutorial cover everything? Just there are some things that you've mentioned that I don't understand, and much of it You'll have to forgive me this - I like to...
  3. Replies
    23
    Views
    3,167

    Re: Object or Class?

    Hokay, heregoes. This is what I've got so far - Just the Character class and a Character. Tell me if I've made any mistakes:


    public class Character {
    private int health=50;
    private int...
  4. Replies
    23
    Views
    3,167

    Re: Object or Class?

    Yes I did read the tutorial.
    It just doesn't seem to touch on what I want... Maybe what I want isn't possible in Java.
    Oh well.
    By the way, for the methods question, I had an idea. Basically, both...
  5. Replies
    23
    Views
    3,167

    Re: Object or Class?

    I can't figure out how to create an object (without simply using new; I mean creating one as you would a class).
    Basically, The Character will be refrenced continuously throughtout the code. Can I...
  6. Replies
    23
    Views
    3,167

    Re: Object or Class?

    Right. Thanks!.
  7. Replies
    23
    Views
    3,167

    Object or Class?

    I'm designing a game not unlike LF2.
    What I'm wondering is - Should I use classes or objects for the characters? Basically the fields would be basic stats, Methods would be attack, die (if Health ->...
Results 1 to 7 of 7