logicell
Class CCells

java.lang.Object
  |
  +--logicell.CCells

public class CCells
extends java.lang.Object

CCells : this class manages and draws blocks of 8x8 cells


Field Summary
(package private)  long CellsVal
          Cells values : long 64 bits = 8x8
(package private)  CCells EBloc
          Point to Eastern bloc
private  int EmptyGen
          # empty generations
private  java.util.Vector FatherList
          Pointer to the List wich contains blocks
(package private)  CCells NBloc
          Point to North bloc
(package private)  CCells NEBloc
          Point to NEast bloc
(package private)  CCells NWBloc
          Point to NorthWest bloc
(package private)  CCells SBloc
          Point to South bloc
(package private)  CCells SEBloc
          Point to SouthEast bloc
(package private)  CCells SWBloc
          Point to SouthWest bloc
(package private) static long Tps
           
(package private) static long TpsA
           
(package private)  CCells WBloc
          Point to Western bloc
(package private)  int x
          position of the bloc
(package private)  int y
          position of the bloc
 
Constructor Summary
CCells(java.util.Vector bv, int _x, int _y)
          Construct cells at pos
CCells(java.util.Vector bv, int _x, int _y, long v)
          Construct cells at pos according to cells values
 
Method Summary
(package private)  void DestroyBloc()
          destruction of a bloc, updates pointers
(package private)  void Live(jpUtil.JPView v)
          Live : draw the CCells (blocks), manages blocks of 2x2 cells
private  void SetPointers()
          Set pointer to neighbours.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

Tps

static long Tps

TpsA

static long TpsA

x

int x
position of the bloc

y

int y
position of the bloc

EmptyGen

private int EmptyGen
# empty generations

NBloc

CCells NBloc
Point to North bloc

NEBloc

CCells NEBloc
Point to NEast bloc

EBloc

CCells EBloc
Point to Eastern bloc

SEBloc

CCells SEBloc
Point to SouthEast bloc

SBloc

CCells SBloc
Point to South bloc

SWBloc

CCells SWBloc
Point to SouthWest bloc

WBloc

CCells WBloc
Point to Western bloc

NWBloc

CCells NWBloc
Point to NorthWest bloc

CellsVal

long CellsVal
Cells values : long 64 bits = 8x8

FatherList

private java.util.Vector FatherList
Pointer to the List wich contains blocks
Constructor Detail

CCells

public CCells(java.util.Vector bv,
              int _x,
              int _y)
Construct cells at pos

CCells

public CCells(java.util.Vector bv,
              int _x,
              int _y,
              long v)
Construct cells at pos according to cells values
Method Detail

DestroyBloc

void DestroyBloc()
destruction of a bloc, updates pointers

Live

void Live(jpUtil.JPView v)
Live : draw the CCells (blocks), manages blocks of 2x2 cells

SetPointers

private void SetPointers()
Set pointer to neighbours. Both directions. This function search the neighbours of a new cell. The best way should have been a wonderful BTree or hashtable but I think I've worked enough, sorry ;=)