A player is a Node that inherits from characters. It is characterized by its possession of the UI, its use of the UserControl AI package, and exclusive abilities. It rests at res://character/Player/Player.gd.


flow

At ready, it gives itself to the UI singleton, so UI.get_player() is available to every node. Maybe dumb, but it works for now. It also sets up all AI packages and the UI, then has the UI display the correct stats.


Item Pickup: consider_pickup > (wait for user to press an inspect option) > id_pressed >

groups



signals



variables



methods

void _ready ()

adds groups and default examine options.


void examine ()

placeholder; prints display name.


void highlight ()

calls entry point on this entity's highlight node.


void id_pressed (new_id)

calls associated method from inspect_options.


void inspect ()

triggers UI's inspect method.

void unhighlight ()

triggers tangible entity's body's unhighlight method.