Thread: Applying OOP in RSPS

Results 1 to 2 of 2
  1. #1 Applying OOP in RSPS 
    Banned

    Join Date
    May 2011
    Posts
    1,773
    Thanks given
    854
    Thanks received
    853
    Rep Power
    0
    EDIT:

    Nothing
    Reply With Quote  
     

  2. #2  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    967
    Thanks given
    47
    Thanks received
    161
    Rep Power
    366
    I don't really get your point with your array.
    To me it just seems like you're talking about a new constructor.
    On that note, I noticed you call the class Object. It's okay if you call it that way, but also know there is an existing class called Object in java (the one OOP refers to).
    If you want a "small" thing to start with, try looking at items on the minimap's ground like this:
    All items on the ground are groundItems (by default, they are forever).
    Some items are spawned (spawningItems extend groundItems with spawn time)
    Other items are dropped (droppedItems extend groundItems with a player to which it might be visible (depending on the time elapsed).
    To get things even further in the OOP line, groundItems are an extension of normal items (they are items with a location).
    This last part would require you to look at items as instances of a class instead of a couple of arrays.
    Depending on your server, that might be a BIG conversion.

    True, it isn't as small as I made it look to be. But it contains a good grasp of what OOP is all about (the extending of classes and overriding of methods in particular).
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. First nudity in rsps? :D n-14
    By Ed in forum Show-off
    Replies: 56
    Last Post: 10-08-2009, 05:41 PM
  2. Nude model in RSPS #2 (lol)
    By Ed in forum Show-off
    Replies: 18
    Last Post: 07-18-2009, 05:02 AM
  3. Bank Pins in RSPS - Pointless?
    By Vegeta in forum RS2 Server
    Replies: 4
    Last Post: 12-01-2008, 09:46 PM
  4. Some Basics in RSPS Coding
    By K0ownage in forum Tutorials
    Replies: 5
    Last Post: 10-26-2008, 05:36 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •