Optional id: string | AgentIdProtected _positionCurrent position in environment
Readonly createdCreation timestamp
Readonly idUnique identifier for this agent
Protected lastLast update timestamp
Protected propertiesAgent properties with type-safe access
Protected stateCurrent agent state
Static prefixedGet current agent state
Calculate distance to another position
Calculate distance to another agent
Get all properties as readonly record
Get all agent properties as an object
Get agent property with type safety
Check if agent is at a specific position
Check if agent is within a certain distance of a position
Check if agent is within a certain distance of another agent
Simple position update with validation
Set position with validation and event emission
Set agent property with validation and event emission
Protected validateProtected validateValidate position before setting Override in subclasses for custom validation
Protected validateValidate property value before setting Override in subclasses for custom validation
BaseAgent - Minimal agent with basic functionality
Features:
Educational Context: Represents basic community members who participate in the environment but don't have complex movement patterns or network relationships.