[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > SC2 Resources > Filtered Listing


Closed Thread
 
Thread Tools
This resource is not available
Old 08-04-2012, 11:02 AM   #2 (permalink)
Forum Moderator Magtheridon96
Go away.
 
Magtheridon96's Avatar
Resource Moderator
 
Join Date: Dec 2008
Posts: 5,749
Magtheridon96 has a brilliant future (1889)Magtheridon96 has a brilliant future (1889)Magtheridon96 has a brilliant future (1889)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. 
Code:
int listGetNext(int node)       { return memoryInt[node];           }
int listGetPrev(int node)       { return memoryInt[node + 1];       }
int listGetData(int node)       { return memoryInt[node + 2];       }
int listGetCount(int list)      { return memoryInt[list + COUNT];   }
->

Code:
int listGetNext(int node)       { return memoryInt[node +  NEXT]; }
int listGetPrev(int node)       { return memoryInt[node +  PREV]; }
int listGetData(int node)       { return memoryInt[node +  DATA]; }
int listGetCount(int list)      { return memoryInt[list + COUNT]; }
That would be better in my opinion.
__________________
Magtheridon96 is offline  
Old 08-10-2012, 04:39 PM   #3 (permalink)
Registered User Statharas
I prefer Nagisa anyway!
 
Statharas's Avatar
 
Join Date: Jul 2008
Posts: 1,938
Statharas is just really nice (304)Statharas is just really nice (304)
I don't have a fucking clue what this is, but you should use like, the Galaxy Editor's icon instead of just writing their names as their image/ss.
__________________


Statharas is offline  
Old 08-10-2012, 06:21 PM   #4 (permalink)
Forum Moderator Magtheridon96
Go away.
 
Magtheridon96's Avatar
Resource Moderator
 
Join Date: Dec 2008
Posts: 5,749
Magtheridon96 has a brilliant future (1889)Magtheridon96 has a brilliant future (1889)Magtheridon96 has a brilliant future (1889)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. 
This is a simple linked list.

It's simply a list of nodes that hold data.

Usually, you would use this data structure when you want to keep a list of things that is constantly changing and very dynamic.
__________________
Magtheridon96 is offline  
Closed Thread

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 01:34 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle