|
A slot is a position in the world where an agent can run the interactions provided by the object that offers the slot. More...
Public Types | |
enum | SlotStates { SlotStates.Blocked, SlotStates.Reserved, SlotStates.ReadyCharacter, SlotStates.ReadyForAuction, SlotStates.CurrentlyOnAuction } |
A slot is in one of these states at any time. More... | |
enum | Result { Result.Success, Result.NoAffordance, Result.NoInteraction, Result.UnclearFailure, Result.InteractionAlreadyRunning, Result.NoProlongableInteraction } |
The result of an agent trying to use this slot More... | |
Public Member Functions | |
Slot (Affordance affordance) | |
Create a new slot More... | |
bool | InterruptInteraction () |
Interrupt the interaction currently running at this slot More... | |
float | CurrentInteractionDuration () |
Get the remaining duration of the currently running interaction. More... | |
bool | ReserveSlot () |
Set the state of the slot to reserved. More... | |
Result | AgentArrivalEasy (AffordanceTreeNode participant) |
This tries to start a random interaction if no interaction is running and sets slot state to ReadyCharacter. More... | |
bool | AgentDeparture () |
Frees the slot for being offered to other agents. More... | |
bool | OfferSlot () |
Sets the slot state to currently being on auction More... | |
bool | SetSlotBlocked () |
Set the slot state to being blocked. More... | |
Properties | |
SlotStates | SlotState [get] |
The current state of the slot. More... | |
Vector3 | Position [get, set] |
World space position of the slot. More... | |
Vector3 | LocalPosition [get, set] |
Please set the position relative to the slot's parent transform here More... | |
Vector3 | LookAt [get, set] |
In world coordinates, where the agent should orient him/herself to More... | |
Vector3 | LocalLookAt [get, set] |
The local position of he look at, where the agent should orient him/herself to, relative to the parents transform. More... | |
bool | IsAuctionable [get, set] |
Whether the auction system is allowed to offer this slot to agents. More... | |
Interaction | currentInteraction [get] |
Which interaction is currently running at this slot. More... | |
A slot is a position in the world where an agent can run the interactions provided by the object that offers the slot.
|
strong |
The result of an agent trying to use this slot
|
strong |
A slot is in one of these states at any time.
Simulation.Slot.Slot | ( | Affordance | affordance | ) |
Create a new slot
affordance | The affordance this slot will belong to. |
Result Simulation.Slot.AgentArrivalEasy | ( | AffordanceTreeNode | participant | ) |
This tries to start a random interaction if no interaction is running and sets slot state to ReadyCharacter.
participant | The agent that will be participating in the interactions of this slot. |
bool Simulation.Slot.AgentDeparture | ( | ) |
Frees the slot for being offered to other agents.
float Simulation.Slot.CurrentInteractionDuration | ( | ) |
Get the remaining duration of the currently running interaction.
bool Simulation.Slot.InterruptInteraction | ( | ) |
Interrupt the interaction currently running at this slot
bool Simulation.Slot.OfferSlot | ( | ) |
Sets the slot state to currently being on auction
bool Simulation.Slot.ReserveSlot | ( | ) |
Set the state of the slot to reserved.
bool Simulation.Slot.SetSlotBlocked | ( | ) |
Set the slot state to being blocked.
|
get |
Which interaction is currently running at this slot.
|
getset |
Whether the auction system is allowed to offer this slot to agents.
|
getset |
The local position of he look at, where the agent should orient him/herself to, relative to the parents transform.
|
getset |
Please set the position relative to the slot's parent transform here
|
getset |
In world coordinates, where the agent should orient him/herself to
|
getset |
World space position of the slot.
|
get |
The current state of the slot.