public ZertzRingRenderer(ZertzGame game, HexLocation hexLocation, Vector3 tileVector, Vector3 tileEscape, float time) { register(); this.tt = new Vector3((float)UniversalRandom.NextDouble(), (float)UniversalRandom.NextDouble(), 0.0f); this.hexLocation = hexLocation; this.boardLocation = Maths.HexVector(hexLocation, 2.0f * OUTER_RADIUS + SPACING, 0.5f * THICKNESS); this.tileVector = tileVector; this.RenderMover = RenderMoveManager.GenerateWaitMover(time, this.tileVector, RenderMoveManager.GenerateMoveMover(this.tileVector, tileEscape, 2.0f, RenderMoveManager.GenerateHopMover(tileEscape, this.boardLocation, 1.5f, null))); //this.RenderMover = RenderMoveManager.GenerateStaticMover(this.tileVector); }
public static ZertzBallRenderer[] GenerateBalls(ZertzBallContainer zbc, RenderContainer rc, ZertzCupRenderer zcr, int offsetid) { int id = offsetid; ZertzBallType zbt; ZertzBallRenderer zbr; ZertzBallRenderer[] list = new ZertzBallRenderer[zbc.Total]; int j = 0x00; for (byte b = 0x00; b < 0x03; b++) { zbt = (ZertzBallType)b; for (int i = 0x00; i < zbc[zbt]; i++) { zbr = new ZertzBallRenderer(zbt); list[j++] = zbr; rc.Add(id++, zbr); zbr.RenderMover = RenderMoveManager.GenerateStaticMover(zcr.CommonContainer.Add(zbr)); } } return(list); }