Class Flag
The flags themselves for Troopers to try and capture.
Inherited Members
Namespace: KaijuSolutions.Agents.Exercises.CTF
Syntax
public class Flag : Pickup
Fields
TeamOneFlag
Team one's flag.
Declaration
public static Flag TeamOneFlag
Field Value
| Type | Description |
|---|---|
| Flag |
TeamTwoFlag
Team two's flag.
Declaration
public static Flag TeamTwoFlag
Field Value
| Type | Description |
|---|---|
| Flag |
Properties
Flags
Both flags for easy access.
Declaration
public static IReadOnlyCollection<Flag> Flags { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyCollection<Flag> |
TeamOne
If this is team one's flag.
Declaration
public bool TeamOne { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
TeamOneBase
The location of team one's base, being where their flag spawns and where to return captured flags to.
Declaration
public static Vector2 TeamOneBase { get; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
TeamOneBase3
The location of team one's base, being where their flag spawns and where to return captured flags to.
Declaration
public static Vector3 TeamOneBase3 { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
TeamTwoBase
The location of team two's base, being where their flag spawns and where to return captured flags to.
Declaration
public static Vector2 TeamTwoBase { get; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
TeamTwoBase3
The location of team two's base, being where their flag spawns and where to return captured flags to.
Declaration
public static Vector3 TeamTwoBase3 { get; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Methods
Base(Boolean)
Get the location of a team's base, being where their flag spawns and where to return captured flags to.
Declaration
public static Vector2 Base(bool teamOne)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | teamOne | If this is team one's base being requested. |
Returns
| Type | Description |
|---|---|
| Vector2 | The location of the team's base. |
Base3(Boolean)
Get the location of a team's base, being where their flag spawns and where to return captured flags to.
Declaration
public static Vector3 Base3(bool teamOne)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | teamOne | If this is team one's base being requested. |
Returns
| Type | Description |
|---|---|
| Vector3 | The location of the team's base. |
Drop()
Drop this flag.
Declaration
public void Drop()
Interact(Trooper)
What to do when interacted with.
Declaration
public override bool Interact(Trooper trooper)
Parameters
| Type | Name | Description |
|---|---|---|
| Trooper | trooper | The Trooper interracting with this. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If the interaction was successful or not. |
Overrides
Return()
Return the flag to its base.
Declaration
public void Return()