Constructor
# new TaxiCustomer(spawnIdx, destIdx)
Parameters:
Name | Type | Description |
---|---|---|
spawnIdx |
number
|
The spawn index |
destIdx |
number
|
The index of the destination the customer has to be droped of to |
Members
Methods
# setNewPosition(spawnIdx, destIdx) → {void}
Define the spawn destination and the destination the customer has to be droped of to.
Parameters:
Name | Type | Description |
---|---|---|
spawnIdx |
number
|
The index of the spawn destination |
destIdx |
number
|
The indes of the drop off destination |
void