Xonotic
sortlist.qh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SORT_SWAP(a, b)
 Swap two neighbours in a sortlist. More...
 

Functions

 classfield (Sort).entity chain
 
 entityclass (Sort)
 
entity Sort_Spawn ()
 

Variables

 sort_next
 
 sort_prev
 

Macro Definition Documentation

◆ SORT_SWAP

#define SORT_SWAP (   a,
 
)
Value:
b.sort_prev = a.sort_prev; \
a.sort_next = b.sort_next; \
if (b.sort_next) b.sort_next.sort_prev = a; \
a.sort_prev = b; \
b.sort_next = a
sort_next
Definition: sortlist.qh:5
sort_prev
Definition: sortlist.qh:5
if(IS_DEAD(this))
Definition: impulse.qc:92

Swap two neighbours in a sortlist.

Parameters
aFIRST entity
bentity after a

Definition at line 14 of file sortlist.qh.

Referenced by MoveToLast(), Scoreboard_UpdatePlayerPos(), and Scoreboard_UpdateTeamPos().

Function Documentation

◆ classfield()

classfield ( Sort  )

◆ entityclass()

entityclass ( Sort  )

◆ Sort_Spawn()

entity Sort_Spawn ( )

Definition at line 4 of file sortlist.qc.

References entity(), new_pure, and NULL.

Referenced by CSQC_Init().

5 {
6  entity sort = new_pure(sortlist);
7  sort.sort_next = NULL;
8  sort.chain = sort;
9  return sort;
10 }
entity() spawn
#define NULL
Definition: post.qh:17
#define new_pure(class)
purely logical entities (.origin doesn't work)
Definition: oo.qh:62
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ sort_next

sort_next

Definition at line 5 of file sortlist.qh.

◆ sort_prev

sort_prev

Definition at line 5 of file sortlist.qh.