예제 #1
0
 //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);
 }
예제 #2
0
파일: GameOutward.cs 프로젝트: sunoru/PBO
 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>();
 }
예제 #3
0
파일: Singles.cs 프로젝트: sunoru/PBO
 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);
 }
예제 #4
0
 internal void Init(BoardOutward board, int observeTeam)
 {
     this.board = board;
       this.observeTeam = observeTeam;
       board.AddListener(this);
 }