Class SpawnPoint
Points which Troopers can spawn at.
Inherited Members
Namespace: KaijuSolutions.Agents.Exercises.CTF
Syntax
public class SpawnPoint : KaijuBehaviour, IComparable<SpawnPoint>
Properties
Occupied
If this is currently occupied by any Troopers.
Declaration
public bool Occupied { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
TeamOne
If this is for team one.
Declaration
public bool TeamOne { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
CompareTo(SpawnPoint)
Compare to another instance for sorting.
Declaration
public int CompareTo(SpawnPoint other)
Parameters
| Type | Name | Description |
|---|---|---|
| SpawnPoint | other | The other instance. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than one if this instance should be first, greater than one if the other instance should be first, or zero if these are the same instance. |
NextSpawnPoint(Boolean)
Get the next point to spawn at, prioritizing open points first.
Declaration
public static SpawnPoint NextSpawnPoint(bool teamOne)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | teamOne | If this is for team one. |
Returns
| Type | Description |
|---|---|
| SpawnPoint | The point to spawn at or NULL if there is none. |
SpawnOccupy(Trooper)
Manually occupy this on a spawn as physics collisions won't pick it up right away.
Declaration
public void SpawnOccupy(Trooper trooper)
Parameters
| Type | Name | Description |
|---|---|---|
| Trooper | trooper |