Beispiel #1
0
 public ClampNode(NodeMap map) : base(map)
 {
     max    = 1;
     min    = 0;
     cutoff = true;
     doOperation();
 }
Beispiel #2
0
 public FileNode(NodeMap map, String fileName) : base(map)
 {
     image  = null;
     xPos   = 0;
     yPos   = 0;
     xScale = 1;
     yScale = 1;
 }
Beispiel #3
0
 public Project()
 {
     Width     = 640;
     Height    = 480;
     frequency = 6;
     seaLevel  = 0.25f;
     equiDisp  = new GridDisplayEquiRect(frequency);
     map       = new NodeMap(Width, Height);
 }
Beispiel #4
0
 public Project(int w, int h, int f, float sl)
 {
     Width     = w;
     Height    = h;
     frequency = f;
     seaLevel  = sl;
     equiDisp  = new GridDisplayEquiRect(frequency);
     map       = new NodeMap(Width, Height);
 }
Beispiel #5
0
        public Node(NodeMap map)
        {
            int needed = getNeeded();
            int opt    = getOptional();

            enableMask = false;
            //This is here to make sure that setInput can always be called
            children = new Node[needed + opt];
            this.map = map;
            outGrid  = new RectGrid(map.Height, map.Width);
            setDefault();
        }
Beispiel #6
0
 public DrawNode(NodeMap map) : base(map)
 {
 }
Beispiel #7
0
 public DebugNode2(NodeMap map) : base(map)
 {
 }
Beispiel #8
0
 public NoiseNode(NodeMap map) : base(map)
 {
     //The perlin class sets its own defaults upon instantiation
     nodePerlin = new Perlin();
     doOperation();
 }
Beispiel #9
0
 //Parent class for generation things
 //subclass of normal nodes
 //start of the chain type deal
 public InputNode(NodeMap map) : base(map)
 {
 }
Beispiel #10
0
 public OutputNode(NodeMap map) : base(map)
 {
     this.parent = null;
     this.mask   = null;
 }
Beispiel #11
0
 public CombinerNode(NodeMap map) : base(map)
 {
     currentMode = 0;
 }