Skip to contents

If the new position is not empty or does not exist, the agent will not move (obviously) and a warning will be issued.

Usage

grid_move(agent, abm, new_x, new_y)

Arguments

agent

the agent for whom the neighbors should be collected (me)

abm

the whole environment model (abm)

new_x

numeric new x position

new_y

numeric new y position

Value

a tidyabm_agent object