Пример #1
0
 private void HandleMaxBanzaiTiles(Point coord, Team team, RoomUser user)
 {
     if (team == Team.none)
     {
         return;
     }
     this.room.GetGameMap().GetCoordinatedItems(coord);
     foreach (RoomItem roomItem in (IEnumerable)this.banzaiTiles.Values)
     {
         if (roomItem.GetBaseItem().InteractionType == InteractionType.banzaifloor && (roomItem.GetX == coord.X && roomItem.GetY == coord.Y))
         {
             BattleBanzai.SetMaxForTile(roomItem, team, user);
             this.room.GetGameManager().AddPointToTeam(team, user);
             roomItem.UpdateState(false, true);
         }
     }
 }
Пример #2
0
		internal BattleBanzai GetBanzai()
		{
			if (this.banzai == null)
			{
				this.banzai = new BattleBanzai(this);
			}
			return this.banzai;
		}
Пример #3
0
		internal void FlushSettings()
		{
			this.mCycleEnded = true;
			using (IQueryAdapter queryreactor = CyberEnvironment.GetDatabaseManager().getQueryReactor())
			{
				this.GetRoomItemHandler().SaveFurniture(queryreactor, null);
			}
			this.Tags.Clear();
			this.UsersWithRights.Clear();
			this.Bans.Clear();
			this.ActiveTrades.Clear();
			this.LoadedGroups.Clear();
			if (this.GotFreeze())
			{
				this.freeze = new Freeze(this);
			}
			if (this.GotBanzai())
			{
				this.banzai = new BattleBanzai(this);
			}
			if (this.GotSoccer())
			{
				this.soccer = new Soccer(this);
			}
			if (this.gameItemHandler != null)
			{
				this.gameItemHandler = new GameItemHandler(this);
			}
		}