ChangingFavouriteGamePlayer
Attributes
- Graph
-
- Supertypes
-
trait Player[T]trait Entitytrait Movable[T]trait Positionedclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class Customer
Members list
Value members
Abstract methods
Inherited methods
Returns a new instance of the entity with its direction updated by adding a given vector to the current direction.
Returns a new instance of the entity with its direction updated by adding a given vector to the current direction.
Value parameters
- addingDirection
-
The vector to add to the current direction.
Attributes
- Returns
-
A new instance of the entity with the added direction.
- Inherited from:
- Movable
Inherited and Abstract methods
Attributes
- Inherited from:
- Player
Attributes
- Inherited from:
- Player
Returns a new instance of the entity with an updated direction. This method ensures immutability.
Returns a new instance of the entity with an updated direction. This method ensures immutability.
Value parameters
- newDirection
-
The new direction vector for the entity.
Attributes
- Returns
-
A new instance of the entity with the updated direction.
- Inherited from:
- Movable
Returns a new instance of the entity with an updated position. This method ensures immutability.
Returns a new instance of the entity with an updated position. This method ensures immutability.
Value parameters
- newPosition
-
The new position for the entity.
Attributes
- Returns
-
A new instance of the entity with the updated position.
- Inherited from:
- Movable