Home > marl > world > gridworld > gridworld_display.m

gridworld_display

PURPOSE ^

Shows or hides the grid world view

SYNOPSIS ^

function gw = gridworld_display(gw, visible, update)

DESCRIPTION ^

Shows or hides the grid world view
  V = GRIDWORLD_DISPLAY(GW[, VISIBLE[, UPDATE]])
  Shows or hides the grid word view. If the UPDATE argument is present, the
  view is updated to be consistent with the world state. If on the other hand
  the argument is not present, but the view needs to be shown and knows it is
  tainted (not consistent with the state of the world) an automatic complete
  update will be performed.
 
  Parameters:
   GW          - the grid world
   VISIBLE     - (optional) whether the view should be shown (1) or
               hidden (0). By default, the view will be shown.
   UPDATE      - (optional) if present, specifies that the view should be
               updated for consistency with the world state. May be either
               the string 'all', in which case all the grid is updated, or
               a vector of bounds [Xmin Xmax Ymin Ymax], in which case
               only the specified area (including edges) is updated.
  Returns:
   GW          - the updated gridworld


  See also gridworldview, gridworld_advance

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 04-Aug-2010 16:55:08 by m2html © 2005