Class

TaxiCustomer

TaxiCustomer(spawnIdx, destIdx)

The class of the Customer who has to be droped of

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

View Source core/src/Games/TaxiGame/Customer.ts, line 10

Members

number

# destIdx

The destination

View Source core/src/Games/TaxiGame/Customer.ts, line 29

boolean

# isCustomerPickedUp

Whether the customer ist picked up

View Source core/src/Games/TaxiGame/Customer.ts, line 43

number

# spawnDestIdx

The Spawn destination

View Source core/src/Games/TaxiGame/Customer.ts, line 36

Methods

# destIdx() → {number}

The destination

View Source core/src/Games/TaxiGame/Customer.ts, line 96

number

# dropOffCustomer() → {void}

Drop Of the customer

View Source core/src/Games/TaxiGame/Customer.ts, line 126

void

# isCustomerPickedUp() → {boolean}

Whether the customer ist picked up

View Source core/src/Games/TaxiGame/Customer.ts, line 112

boolean

# pickUpCustomer() → {void}

Pick up The customer

View Source core/src/Games/TaxiGame/Customer.ts, line 119

void

# position() → {Vec2}

The position

View Source core/src/Games/TaxiGame/Customer.ts, line 88

Vec2

# 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

View Source core/src/Games/TaxiGame/Customer.ts, line 135

void

# spawnDestIdx() → {number}

The Spawn destination

View Source core/src/Games/TaxiGame/Customer.ts, line 104

number