Skip to content

New Player type #2

@janisdd

Description

@janisdd

Bug or Feature?
Feature

Currently there is now easy way to access the local variables of another player (except for np.X, pp.X).
With more than 3 players this might be not enough.

With a new datatype (Player) one could store a reference to a player in a variable e.g.

Player x = cp
...
x = np
...
/* any player could run this */
x.Y = ...

Further thoughts
However we then could only use cp/np/pp as a value for such a player variable so it might also be useful to allow player indices (0 to players.length - 1) or to get a player from an index via a function e.g. player(0)? and make the player count accessible e.g. playerCount

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions