BiomFrame
Class CBiomorphUniverse

java.lang.Object
  |
  +--BiomFrame.CUniverse
        |
        +--BiomFrame.CBiomorphUniverse

class CBiomorphUniverse
extends CUniverse

Defines the functions of the Biomorph's Universe


Field Summary
(package private)  CBiomApp App
          Pointer to calling App
(package private)  CBiomorph CurrentBiom
          Biom at place 1
(package private)  CBiomView MainView
          View of the Universe
(package private)  int NbMutants
           
(package private)  CBiomorph ZoomBiom
          Current Zooming biom
 
Fields inherited from class BiomFrame.CUniverse
Biots, BIOTS_BKP_SIZE, BiotsBkp, MyApp, NbDirections
 
Constructor Summary
CBiomorphUniverse(CBiomApp ba)
          Construct World in Application
 
Method Summary
(package private)  void CreateMutants(CBiomorph father)
          Create offspring set for father
 void DrawWorld()
          Default drawing
 void DrawWorld(JPView jpv)
          Draw World
(package private)  void GenRndBioms()
          Generate Random Bioms
(package private)  CBiomorph GetCurrentBiom()
          Return current biom
(package private)  CBiomView GetMainView()
          View getter
 void Go()
          Default Run
 void Go(JPView jpv)
          Run the World in View e.d. create offsprings set and draw World
(package private)  void InitView()
          Init View
(package private)  void Reset()
          Restore default Bioms
(package private)  void SetCurrentBiom(CBiomorph biom)
          set biom to CurrentBiom (0)
(package private)  void SetZoomBiom(CBiomorph biom)
          set Zoom biom to CurrentBiom (0)
(package private)  void Undo()
          Undo : Get last Biom in BKP
 
Methods inherited from class BiomFrame.CUniverse
AddBiotBkp, EmptyBiotBkp, GetBiotAt, GetBiotBkp, RemoveBiotBkp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NbMutants

final int NbMutants

App

CBiomApp App
Pointer to calling App

MainView

CBiomView MainView
View of the Universe

CurrentBiom

CBiomorph CurrentBiom
Biom at place 1

ZoomBiom

CBiomorph ZoomBiom
Current Zooming biom
Constructor Detail

CBiomorphUniverse

public CBiomorphUniverse(CBiomApp ba)
Construct World in Application
Method Detail

GetMainView

CBiomView GetMainView()
View getter

InitView

void InitView()
Init View

CreateMutants

void CreateMutants(CBiomorph father)
Create offspring set for father

GetCurrentBiom

CBiomorph GetCurrentBiom()
Return current biom

SetCurrentBiom

void SetCurrentBiom(CBiomorph biom)
set biom to CurrentBiom (0)

SetZoomBiom

void SetZoomBiom(CBiomorph biom)
set Zoom biom to CurrentBiom (0)

Undo

void Undo()
Undo : Get last Biom in BKP

Reset

void Reset()
Restore default Bioms

GenRndBioms

void GenRndBioms()
Generate Random Bioms

Go

public void Go(JPView jpv)
Run the World in View e.d. create offsprings set and draw World
Overrides:
Go in class CUniverse

Go

public void Go()
Default Run

DrawWorld

public void DrawWorld()
Default drawing

DrawWorld

public void DrawWorld(JPView jpv)
Draw World
Overrides:
DrawWorld in class CUniverse