Class TargetPicker<T, V>
Generic data type that allows to pick all types of a target T, just a list of elements of type T or everything but a list of elements of type T
Namespace: RTSEngine.Entities
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public abstract class TargetPicker<T, V>
Type Parameters
Name | Description |
---|---|
T | Type of the target. |
V | Type of the list that defines the possible (or not) targets. |
Fields
options
Declaration
protected V options
Field Value
Type | Description |
---|---|
V |
type
Declaration
protected TargetPickerType type
Field Value
Type | Description |
---|---|
TargetPickerType |
Methods
IsInList(T)
Is the target 't' in the list?
Declaration
protected abstract bool IsInList(T target)
Parameters
Type | Name | Description |
---|---|---|
T | target | Target instance to test |
Returns
Type | Description |
---|---|
Boolean | True if the target 't' is in the list, otherwise false. |
IsValidTarget(T)
Determines whether a target 't' can be picked as a valid target.
Declaration
public virtual bool IsValidTarget(T target)
Parameters
Type | Name | Description |
---|---|---|
T | target | The target to test its validity. |
Returns
Type | Description |
---|---|
Boolean | true if the target 't' can be picked, otherwise false. |