Move an agent to the proposed new x/y position (if it is empty)
Source:R/environment_grid.r
grid_move.RdIf the new position is not empty or does not exist, the agent will not move (obviously) and a warning will be issued.
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
See also
Other utilities:
get_characteristic(),
get_random_agent(),
get_variable(),
grid_get_free_neighboring_spots(),
grid_get_free_spots(),
grid_get_neighbors(),
network_connect(),
network_get_neighbors(),
network_spread(),
remove_agent(),
stop_abm()