Jypeli 10
The simple game programming library
Jypeli.GroupCollection luokkareferenssi

A collection that stores ints that represent groups Lisää...

Luokan Jypeli.GroupCollection luokkakaavio

Julkiset jäsenfunktiot

 GroupCollection ()
 
 GroupCollection (GroupCollection copy)
 
bool Add (int item)
 Trys to add a group. Lisää...
 
int AddRange (int[] array)
 adds an array of group ids. Lisää...
 
void Clear ()
 removes the ignorer from all groups. Lisää...
 
bool Contains (int item)
 returns true if the ignorer is part of the group. Lisää...
 
int ContainsRange (int[] array)
 returns the number of groups in the array it is part of. Lisää...
 
void CopyTo (int[] array, int arrayIndex)
 
IEnumerator< int > GetEnumerator ()
 
bool Remove (int item)
 Trys to remove the ignorer from a group. Lisää...
 
int RemoveRange (int[] array)
 Trys to remove the ignorer from a range of groups. Lisää...
 

Staattiset julkiset jäsenfunktiot

static bool Intersect (GroupCollection groups1, GroupCollection groups2)
 

Ominaisuudet

int Count [get]
 Gets the number of collison Groups the ignorer is part of. Lisää...
 
bool ICollection< int >. IsReadOnly [get]
 

Yksityiset jäsenfunktiot

void ICollection< int >. Add (int item)
 
System.Collections.IEnumerator System.Collections.IEnumerable. GetEnumerator ()
 

Yksityiset attribuutit

List< int > groups = new List<int>()
 

Yksityiskohtainen selite

A collection that stores ints that represent groups

Määrittely tiedoston GroupCollection.cs rivillä 39.

Rakentajien & purkajien dokumentaatio

◆ GroupCollection() [1/2]

Jypeli.GroupCollection.GroupCollection ( )

Määrittely tiedoston GroupCollection.cs rivillä 67.

Viittaukset Jypeli.GroupCollection.groups.

◆ GroupCollection() [2/2]

Jypeli.GroupCollection.GroupCollection ( GroupCollection  copy)

Määrittely tiedoston GroupCollection.cs rivillä 71.

Viittaukset Jypeli.GroupCollection.groups.

Jäsenfunktioiden dokumentaatio

◆ Add() [1/2]

bool Jypeli.GroupCollection.Add ( int  item)

Trys to add a group.

Parametrit
itemThe group ID to add.
Palauttaa
false if the ignorer was already part of the group; otherwise false.

Määrittely tiedoston GroupCollection.cs rivillä 93.

Viittaukset Jypeli.GroupCollection.groups.

◆ Add() [2/2]

void ICollection< int >. Jypeli.GroupCollection.Add ( int  item)
private

Määrittely tiedoston GroupCollection.cs rivillä 249.

Viittaukset Jypeli.Add.

◆ AddRange()

int Jypeli.GroupCollection.AddRange ( int[]  array)

adds an array of group ids.

Parametrit
arrayThe array of group IDs. (this will be sorted)
Palauttaa
the number of IDs that were not already part of the group.

Määrittely tiedoston GroupCollection.cs rivillä 115.

Viittaukset Jypeli.GroupCollection.groups.

◆ Clear()

void Jypeli.GroupCollection.Clear ( )

removes the ignorer from all groups.

Määrittely tiedoston GroupCollection.cs rivillä 256.

◆ Contains()

bool Jypeli.GroupCollection.Contains ( int  item)

returns true if the ignorer is part of the group.

Parametrit
itemThe group ID.
Palauttaa
true if the ignorer is part of the group; otherwise false.

Määrittely tiedoston GroupCollection.cs rivillä 170.

Viittaukset Jypeli.GroupCollection.groups.

◆ ContainsRange()

int Jypeli.GroupCollection.ContainsRange ( int[]  array)

returns the number of groups in the array it is part of.

Parametrit
arrayThe array of group IDs. (this will be sorted)
Palauttaa
The number of groups in the array it is part of.

Määrittely tiedoston GroupCollection.cs rivillä 179.

Viittaukset Jypeli.GroupCollection.groups.

◆ CopyTo()

void Jypeli.GroupCollection.CopyTo ( int[]  array,
int  arrayIndex 
)

Määrittely tiedoston GroupCollection.cs rivillä 260.

◆ GetEnumerator() [1/2]

IEnumerator< int > Jypeli.GroupCollection.GetEnumerator ( )

Määrittely tiedoston GroupCollection.cs rivillä 264.

◆ GetEnumerator() [2/2]

System.Collections.IEnumerator System.Collections.IEnumerable. Jypeli.GroupCollection.GetEnumerator ( )
private

Määrittely tiedoston GroupCollection.cs rivillä 268.

◆ Intersect()

static bool Jypeli.GroupCollection.Intersect ( GroupCollection  groups1,
GroupCollection  groups2 
)
static

◆ Remove()

bool Jypeli.GroupCollection.Remove ( int  item)

Trys to remove the ignorer from a group.

Parametrit
itemThe group ID.
Palauttaa
true if the ignore was part of the group; otherwise false.

Määrittely tiedoston GroupCollection.cs rivillä 210.

Viittaukset Jypeli.GroupCollection.groups.

◆ RemoveRange()

int Jypeli.GroupCollection.RemoveRange ( int[]  array)

Trys to remove the ignorer from a range of groups.

Parametrit
arrayThe array of group IDs. (this will be sorted)
Palauttaa
the number of groups the ignore was removed from.

Määrittely tiedoston GroupCollection.cs rivillä 222.

Viittaukset Jypeli.GroupCollection.groups.

Jäsendatan dokumentaatio

◆ groups

Ominaisuuksien dokumentaatio

◆ Count

int Jypeli.GroupCollection.Count
get

Gets the number of collison Groups the ignorer is part of.

Määrittely tiedoston GroupCollection.cs rivillä 79.

◆ IsReadOnly

bool ICollection<int>. Jypeli.GroupCollection.IsReadOnly
getprivate

Määrittely tiedoston GroupCollection.cs rivillä 83.


Dokumentaatio tälle luokalle luotiin seuraavasta tiedostosta: