Ejemplo n.º 1
0
 public TUfo(int x, int y, char sign)
 {
     Sign      = sign;
     XPos      = x;
     YPos      = y;
     Rnd       = new Random(4561);
     Position  = new TPosition(XPos, YPos);
     list      = new List <int>();
     tarnKappe = false;
 }
Ejemplo n.º 2
0
            public Shape <TNode, TPosition, TKey> GetShape(TPosition position)
            {
                var shape = default(Shape <TNode, TPosition, TKey>);

                if (positionShapeLookup.TryGetValue(position, out shape))
                {
                    return(shape);
                }
                Debug.Log("Shape not found. Returning null");
                return(null);
            }
Ejemplo n.º 3
0
            public TNode AddNodeToShape(Shape <TNode, TPosition, TKey> shape, INodeFactory <TNode, TPosition, TKey> nodeFactory, TPosition position)
            {
                var node = nodeFactory.Create(shape.Area, position);

                shape.AddNode(node);
                positionShapeLookup[position] = shape;
                return(node);
            }
Ejemplo n.º 4
0
 public void Select (Guid contentId, TPosition contentPosition)
 {
   Id = contentId;
   Position.CopyFrom (contentPosition);
 }
Ejemplo n.º 5
0
		protected void highlightPosition(TDrawBoardEvent e, TPosition pos) {
			if (pos != null)
				e.gfx.FillRectangle(new SolidBrush(Color.Red), pos.x * 16, pos.y * 16, 16, 16);
		}
Ejemplo n.º 6
0
 public MyHead(TState state, GssNode <TStackSymbol, TGssData> stackTop, TPosition position) : base(state, stackTop, position)
 {
 }