Examples of WorldModelState


Examples of fr.utbm.gi.vi51.pw.environment.WorldModelState

      drawAgents(g2d, currentDim);
    }
   
    private void drawAgents(Graphics2D g2d, Dimension currentDim) {
      WorldModelState state = getLastState();
      if (state!=null) {
        for (SituatedObject p : state.getObjects()) {
          drawAgent(
              g2d,
              (int)p.getX(), (int)p.getY(),
              (int)(p.getDirection().getX()*DIRECTION_RADIUS),
              (int)(p.getDirection().getY()*DIRECTION_RADIUS),
              state.isLeader(p));
        }
      }
    }
 
View Full Code Here

Examples of fr.utbm.gi.vi51.pw.environment.WorldModelState

      drawAgents(g2d, currentDim);
    }
   
    private void drawAgents(Graphics2D g2d, Dimension currentDim) {
      WorldModelState state = getLastState();
      if (state!=null) {
        for (SituatedObject p : state.getObjects())
        {
          if(p instanceof AgentBody)
          {
            drawAgent(
                g2d,
                (int)p.getX(), (int)p.getY(),
                (int)(p.getDirection().getX()*DIRECTION_RADIUS),
                (int)(p.getDirection().getY()*DIRECTION_RADIUS),
                state.isLeader(p));
          }
          if(p instanceof Floor)
          {
            drawFloor(g2d,
                (int)p.getX(), (int)p.getY(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.