public HostEntity() { hostIndex = BrainGame.Random.Next(1, 7); Add(new BoxBehavior() { Width = 50, Height = 50 }); hostBorder = new HostBorder(); Add(hostBorder); back = new SpriteEntity("HostBack") { Depth = 0.6f }; border = new SpriteEntity("HostBorder") { Depth = 0.4f }; Add(back); Add(border); Add(new TextEntity(Texts.NextName(), new Vector2(0, 22)) { CenteredHorizontally = true }); leaveTimer = new ActionTimer(GameState.HostTime, Leave); Add(leaveTimer); }
public GameFlowBehavior() { NextDifficulty(); Delay(1, AddHost); Delay(6, AddHost); Delay(3, AddContract); contractTimer = new ActionTimer(currentLevel.contractInterval, AddContract); hostVisitTimer = new ActionTimer(currentLevel.hostInterval, AddHost); Add(contractTimer); Add(hostVisitTimer); }