Search:

Type: Posts; User: dunnkers

Search: Search took 0.16 seconds.

  1. Replies
    10
    Views
    2,589

    Re: API singleton theory

    Sorry for all the confusion guys, but what im basically trying to do is using my API in a class without defining variables in everytime.
  2. Replies
    10
    Views
    2,589

    Re: API singleton theory

    Thanks for your reply aussiemcgr,
    but this is not quite what i mean.

    What i try to prevent is that i have to create a large number of variables in each class i want to use other classes in. I'd...
  3. Replies
    10
    Views
    2,589

    Re: API singleton theory

    I need them so i'd easily type


    combat.someMethod();

    instead of


    new dunkscripts.game.Combat().someMethod();
  4. Replies
    10
    Views
    2,589

    Re: API singleton theory

    theres obviously recursion going on, but i don't know how to do it the right way. anyone?
  5. Replies
    10
    Views
    2,589

    API singleton theory

    Okay, i've been struggling with this for a while now so i thought i'd ask the experts.

    I have a file Combat.java
    Another file, Actions.java, uses methods stored in Combat.java
    So i have a class,...
Results 1 to 5 of 5