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; }
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); }
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); }
public void Select (Guid contentId, TPosition contentPosition) { Id = contentId; Position.CopyFrom (contentPosition); }
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); }
public MyHead(TState state, GssNode <TStackSymbol, TGssData> stackTop, TPosition position) : base(state, stackTop, position) { }