@@ -3,8 +3,8 @@ Phaser.LinkedList = function () {
33
44Phaser . LinkedList . prototype = {
55
6- _iNext : null ,
7- _iPrev : null ,
6+ next : null ,
7+ prev : null ,
88 first : null ,
99 last : null ,
1010 sprite : { name : 'HD' } ,
@@ -16,15 +16,15 @@ Phaser.LinkedList.prototype = {
1616 {
1717 this . first = child ;
1818 this . last = child ;
19- this . _iNext = child ;
20- child . _iPrev = this ;
19+ this . next = child ;
20+ child . prev = this ;
2121 return ;
2222 }
2323
2424 // Get gets appended to the end of the list, regardless of anything, and it won't have any children of its own (non-nested list)
25- this . last . _iNext = child ;
25+ this . last . next = child ;
2626
27- child . _iPrev = this . last ;
27+ child . prev = this . last ;
2828
2929 this . last = child ;
3030
@@ -43,22 +43,22 @@ Phaser.LinkedList.prototype = {
4343 {
4444 this . first = null ;
4545 this . last = null ;
46- this . _iNext = null ;
47- child . _iNext = null ;
48- child . _iPrev = null ;
46+ this . next = null ;
47+ child . next = null ;
48+ child . prev = null ;
4949 return ;
5050 }
5151
52- var childPrev = child . _iPrev ;
52+ var childPrev = child . prev ;
5353
5454 // Tail node?
55- if ( child . _iNext )
55+ if ( child . next )
5656 {
5757 // Has another node after it?
58- child . _iNext . _iPrev = child . _iPrev ;
58+ child . next . prev = child . prev ;
5959 }
6060
61- childPrev . _iNext = child . _iNext ;
61+ childPrev . next = child . next ;
6262
6363 } ,
6464
@@ -72,14 +72,14 @@ Phaser.LinkedList.prototype = {
7272 var nameFirst = '-' ;
7373 var nameLast = '-' ;
7474
75- if ( this . _iNext )
75+ if ( this . next )
7676 {
77- nameNext = this . _iNext . sprite . name ;
77+ nameNext = this . next . sprite . name ;
7878 }
7979
80- if ( this . _iPrev )
80+ if ( this . prev )
8181 {
82- namePrev = this . _iPrev . sprite . name ;
82+ namePrev = this . prev . sprite . name ;
8383 }
8484
8585 if ( this . first )
@@ -116,7 +116,7 @@ Phaser.LinkedList.prototype = {
116116
117117 var entity = this ;
118118
119- var testObject = entity . last . _iNext ;
119+ var testObject = entity . last . next ;
120120 entity = entity . first ;
121121
122122 do
@@ -127,14 +127,14 @@ Phaser.LinkedList.prototype = {
127127 var nameFirst = '-' ;
128128 var nameLast = '-' ;
129129
130- if ( entity . _iNext )
130+ if ( entity . next )
131131 {
132- nameNext = entity . _iNext . sprite . name ;
132+ nameNext = entity . next . sprite . name ;
133133 }
134134
135- if ( entity . _iPrev )
135+ if ( entity . prev )
136136 {
137- namePrev = entity . _iPrev . sprite . name ;
137+ namePrev = entity . prev . sprite . name ;
138138 }
139139
140140 if ( entity . first )
@@ -169,7 +169,7 @@ Phaser.LinkedList.prototype = {
169169
170170 console . log ( name + '\t\t\t|\t\t' + nameNext + '\t\t\t|\t\t' + namePrev + '\t\t\t|\t\t' + nameFirst + '\t\t\t|\t\t' + nameLast ) ;
171171
172- entity = entity . _iNext ;
172+ entity = entity . next ;
173173
174174 }
175175 while ( entity != testObject )
0 commit comments