示例#1
0
  public boolean restore_state(InputObjectState objectState, int objectType) {
    super.restore_state(objectState, objectType);
    try {
      for (int x = 0; x < _width; x++) {
        for (int y = 0; y < _height; y++) {
          _values[x][y] = objectState.unpackInt();
        }
      }

      return true;
    } catch (Exception exception) {
      System.err.println("AITMatrixImpl01.restore_state: " + exception);
      return false;
    }
  }