package com.example.rollingball.app;

import android.hardware.input.InputManager;

import java.util.InputMismatchException;
import java.util.LinkedList;

/**
 * Created by sakamoto on 2014/05/14.
 */
public class Scene implements IUpdatetable
{
  public LinkedList<GameObject> game_objects;
  public Camera camera;
  public InputManager input_manager;
  public SceneManager scene_manager;
  private Message[] _massages;
  public boolean to_exit;

  Scene(){
    camera = new Camera();
    input_manager = new InputManager();
  }

  Scene( SceneManager s )
  {
    scene_manager = s;
  }

  void push( GameObject game_object ){

  }

  void message( Message message ){

  }

  public SceneManager getScene_manager(){
    return scene_manager;
  }

  public void update( long delta_time_in_ns ){
    if ( to_exit == true )
    {
      for ( int i = 0; i < game_objects.size(); i++ )
      {
        update( delta_time_in_ns );
      }
      to_exit = false;
    }
  }
}

@@ -795,114 +795,53 @@
     
-if ( to_exit == true )%0A    %7B%0A      for ( int i = 0; i %3C game_objects.size(); i++ )%0A      %7B%0A       
+  for ( GameObject g : game_objects )
  update(
  del
@@ -836,17 +836,16 @@
  update(
- 
 delta_ti
@@ -856,49 +856,11 @@
 n_ns
- 
 );%0A
-      %7D%0A      to_exit = false;%0A    %7D%0A
   %7D%0A

実装#33修正完了