Thread: Hash map

Results 1 to 7 of 7
  1. #1 Hash map 
    #Winning

    Join Date
    Apr 2011
    Age
    25
    Posts
    2,247
    Thanks given
    367
    Thanks received
    387
    Rep Power
    1187
    So I went and learned how to use hashmaps... What would be a good thing to apply them to on an rsps? Just figure I could use a bit of practice. Something easy though.


    Vouches
    Spoiler for Vouches:

    Quote Originally Posted by Exile rsps View Post
    Vouch thanks for that pic
    Quote Originally Posted by bwuk _im_pb View Post
    i vouch for charlie hes legit
    Quote Originally Posted by Pastaway
    Vouch for 'Charlie. Added a tut to my server I couldn't add and payed him after =]
    Quote Originally Posted by mongolias
    Vouch for 'Charlie. Sold me a banner, the trade went quick and efficiently.
    Quote Originally Posted by Lane
    Vouch for charlie, he is #1
    Quote Originally Posted by Raw Envy View Post
    Vouch for Charlie.
    Quote Originally Posted by -Null Code-
    Vouch Legit bought rs membership
    Quote Originally Posted by tucybro
    Traded with Charlie, went smoothly I went first and he paid promptly without and issues, great trader!



    Reply With Quote  
     

  2. #2  
    Community Veteran



    Join Date
    Jan 2008
    Posts
    3,448
    Thanks given
    46
    Thanks received
    973
    Rep Power
    4723
    storing item defs eg

    Map<Integer, Item> defs = new HashMap<Integer, Item>();

    to get do
    Item item = defs.get(id);

    to put do something like
    Item item - new Item(363);
    item.setName("cool item");
    item.setExamine("Cheap cool item");
    defs.put(363, item);

    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    #Winning

    Join Date
    Apr 2011
    Age
    25
    Posts
    2,247
    Thanks given
    367
    Thanks received
    387
    Rep Power
    1187
    Quote Originally Posted by Flamable View Post
    storing item defs eg

    Map<Integer, Item> defs = new HashMap<Integer, Item>();

    to get do
    Item item = defs.get(id);

    to put do something like
    Item item - new Item(363);
    item.setName("cool item");
    item.setExamine("Cheap cool item");
    defs.put(363, item);
    Why do that when I have item.cfg ?


    Vouches
    Spoiler for Vouches:

    Quote Originally Posted by Exile rsps View Post
    Vouch thanks for that pic
    Quote Originally Posted by bwuk _im_pb View Post
    i vouch for charlie hes legit
    Quote Originally Posted by Pastaway
    Vouch for 'Charlie. Added a tut to my server I couldn't add and payed him after =]
    Quote Originally Posted by mongolias
    Vouch for 'Charlie. Sold me a banner, the trade went quick and efficiently.
    Quote Originally Posted by Lane
    Vouch for charlie, he is #1
    Quote Originally Posted by Raw Envy View Post
    Vouch for Charlie.
    Quote Originally Posted by -Null Code-
    Vouch Legit bought rs membership
    Quote Originally Posted by tucybro
    Traded with Charlie, went smoothly I went first and he paid promptly without and issues, great trader!



    Reply With Quote  
     

  5. #4  
    Community Veteran



    Join Date
    Jan 2008
    Posts
    3,448
    Thanks given
    46
    Thanks received
    973
    Rep Power
    4723
    my way caches the itemdef so u can get from the map instead of keep reading the file

    Reply With Quote  
     

  6. #5  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,764
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Hashmaps can be used in diffrent occasions, it can store players in a team for instance.
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    Jun 2010
    Age
    24
    Posts
    2,530
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    Minigames, clan chat, etc
    Reply With Quote  
     

  8. #7  
    Registered Member

    Join Date
    Jun 2009
    Posts
    454
    Thanks given
    31
    Thanks received
    48
    Rep Power
    168
    It's been used a lot for packet handling and command handling.
    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. New ArJava hash map implementation
    By Ar.Java in forum Application Development
    Replies: 4
    Last Post: 10-27-2010, 03:07 AM
  2. removing md5 hash
    By krisg08 in forum Help
    Replies: 2
    Last Post: 12-25-2009, 05:13 AM
  3. vBulletin Hash Generator
    By Segadora in forum Website Development
    Replies: 5
    Last Post: 08-25-2009, 08:12 PM
  4. MD5 hash from VBulletin
    By Nightleaf in forum Help
    Replies: 6
    Last Post: 06-05-2009, 10:05 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •