Thread: How to make a decent class file (handler)

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 How to make a decent class file (handler) 
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    removing everything i have ever posted cause you"re all retarded k?
     

  2. #2  
    haloking
    Guest
    Good guide, will help out any beginning coders and maybe have people try to make their own handlers, I just made my first handler. PosionHandler, lol its kind of useless but o well.
     

  3. #3  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    Good tutorial, and haloking, try to spell PoisonHandler correctly.
    Back for now...
     

  4. #4  
    haloking
    Guest
    Quote Originally Posted by FlyLeaf View Post
    Good tutorial, and haloking, try to spell PoisonHandler correctly.
    Lol woops. Thanks.
     

  5. #5  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    660
    Discord
    View profile
    Rep Power
    5000
    Also haloking you dont have to start with a lowercase like so: haloKing, you dont have to do that that is either for declaration or for methods.

    It is best to use capital's in the name I think

    Then you can call the method in a different class:

    HaloKing haloKing = new HaloKing(this);

    Or something like that
     

  6. #6  
    Donator

    Evan's Avatar
    Join Date
    Aug 2007
    Age
    25
    Posts
    1,028
    Thanks given
    1
    Thanks received
    3
    Rep Power
    134
    Good job I laughed all the way through reading that. I remember when i didn't know all that stuff....

    Will help the new people
    Gone...
     

  7. #7  
    Respected Member


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    32
    Posts
    12,549
    Thanks given
    177
    Thanks received
    5,784
    Discord
    View profile
    Rep Power
    5000
    You're talking about good practice in RSPS?

     

  8. #8  
    haloking
    Guest
    Quote Originally Posted by Vastico View Post
    Also haloking you dont have to start with a lowercase like so: haloKing, you dont have to do that that is either for declaration or for methods.

    It is best to use capital's in the name I think

    Then you can call the method in a different class:

    HaloKing haloKing = new HaloKing(this);

    Or something like that
    My handler does start with caps.
     

  9. #9  
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Quote Originally Posted by Luke132 View Post
    You're talking about good practice in RSPS?
    This could be used for anything tbh, just depends really.

    Quote Originally Posted by Patrick View Post
    To be honest, you really don't need to import the io java package, due to your not loading anything from another class file.
    I was showing an example of to where to put your any needed imports
     

  10. #10  
    Extreme Donator

    Patrity's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    937
    Thanks given
    173
    Thanks received
    306
    Discord
    View profile
    Rep Power
    882
    *sigh* im not sure What im doing Wrong


    Code:
    Compiling...
    MemberHandler.java:20: <identifier> expected
    client.sendMessage("test");
                      ^
    MemberHandler.java:20: illegal start of type
    client.sendMessage("test");
                       ^
    2 errors
    Compiled Succesfully!
    Press any key to continue . . .
    heres my full file

    Code:
    /*
     * A Handler For All Of My Membership Features
     * 
     * 1.0
     *
     * Wednesday, October 22.
     * 
     * Copyright notice
     */
    
    import java.io.*;
    
    public class MemberHandler
    {
       private client client;
       public MemberHandler(client client)
       {
           this.client = client;
       }
    client.sendMessage("test");
    
    }
    Free map releases: [Only registered and activated users can see links. ]



    [Only registered and activated users can see links. ]
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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