Thread: Making a new class file

Results 1 to 6 of 6
  1. #1 Making a new class file 
    Registered Member
    Groovy's Avatar
    Join Date
    Nov 2008
    Posts
    265
    Thanks given
    4
    Thanks received
    7
    Rep Power
    86
    How could I make it so my I can have more than one class8 file. Example, say I want to make it so I can load models from a class file for weapons only or plate body's only? would it be called a subclass or something?

    Thanks
     

  2. #2  
    Registered Member
    Rainaka's Avatar
    Join Date
    Nov 2008
    Age
    26
    Posts
    1,391
    Thanks given
    273
    Thanks received
    89
    Rep Power
    870
    ooo Thanks for making this thread, i need it too.
     

  3. #3  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    It would technically be a "handler". Just make a handler for each one and then call it in class8.java.
    [Only registered and activated users can see links. ]
     

  4. #4  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    26
    Posts
    7,989
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    If you need help figuring how to do it, Just look how me and jack do our interfaces. It will help extremely.


    [Only registered and activated users can see links. ]
     

  5. #5  
    Banned

    Join Date
    Dec 2006
    Age
    25
    Posts
    2,196
    Thanks given
    5
    Thanks received
    23
    Rep Power
    0
    copy the methods from class8 into a new one
     

  6. #6  
    :doge:

    Join Date
    Jan 2009
    Posts
    3,759
    Thanks given
    221
    Thanks received
    816
    Rep Power
    2113
    Code:
    would start off the class something like
    
    (imports..)
    
    public class class8Weapons extends class8 {
    
    public void customWeps() {
    
    (all your customweps and needed methods)
    }
    }
    then you would go into class8 and call something like

    customWeps();
     


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
  •