//internal... public void Init(BoardOutward board) { this.board = board; owner = new Terrain3D(5, 3, board.Terrain); rival = new Terrain3D(-5, 3, board.Terrain); m3dgroup.Children.Add(owner.Model); m3dgroup.Children.Add(rival.Model); //m3dgroup.Children.Add(new Pokemon().Model); }
public GameOutward(GameSettings settings) { Settings = settings; Board = new BoardOutward(Settings); Teams = new TeamOutward[Settings.TeamCount]; for (int t = 0; t < Settings.TeamCount; t++) Teams[t] = new TeamOutward(6, 0, 0); listeners = new List<IGameEventListener>(); }
internal Singles(Room.IUserController c) { controller = c.PlayerController; controller.AddEventsListener(this); board = c.Game.Board; teamPms = c.Game.Teams[controller.Player.TeamId]; rivalPms = c.Game.Teams[1 - controller.Player.TeamId]; selectedPanel = (int)ControlPanelIndex.INACTIVE; //controller.Board.MyTeam.PokemonOnBoardChanged += (sender, e) => // { // if (e.NewPokemon != null) pokemonsInBall.Remove(e.NewPokemon); // if (e.OldPokemon != null) pokemonsInBall.Add(e.OldPokemon); // }; //pokemonsInBall = new List<IPokemon>(controller.Player.Pokemons.Where(p => p.PositionOnBoard == null));//如果中途加载的话有可能存在正在战斗的精灵 //this.controller_IsActiveChanged(null, null); }
internal void Init(BoardOutward board, int observeTeam) { this.board = board; this.observeTeam = observeTeam; board.AddListener(this); }