コード例 #1
0
ファイル: DividingModule.java プロジェクト: wrmsr/cx3d
  public void run() {

    PhysicalSphere sphere = cell.getSomaElement().getPhysicalSphere();
    if (sphere.getDiameter() > 20) {
      cell.divide();
    } else {
      sphere.changeVolume(300);
    }
  }