Inheritance: StaticTileObject
Esempio n. 1
0
 public Unit(Model model, Base.Base goalBase)
     : base(model)
 {
     previousTile = new Tile();
     currentTile = new Tile();
     focalPoint = new Vector3();
     focalTile = new Tile();
     goalTile = goalBase.Tile;
     isStuck = false;
     health = 100;
 }
Esempio n. 2
0
 public static void SetObject(Base gameObject, Tile Tile2)
 {
     SetBase(gameObject, Tile2);
 }
Esempio n. 3
0
 public static void SetBase(Base setBase, Tile tile)
 {
     bases.Add(setBase);
     tile.TileType = TileType.Base;
 }
 public TestUnit(Vector3 position, Base.Base goalBase)
     : base(ScreenManager.Game.Content.Load<Model>("Model\\pyramids"), goalBase)
 {
     this.position = position;
     this.Scale = 1;
 }
Esempio n. 5
0
 public void SetGoalBase(Base goalBase)
 {
     this.goalBase = goalBase;
 }
Esempio n. 6
0
 public static void SetBase(Base setBase)
 {
     bases.Add(setBase);
 }
 public static void Add(ref Base playerBase)
 {
     Bases[playerBase.PlayerNum] = playerBase;
 }
Esempio n. 8
0
 public void SetTargetBase(Base target)
 {
     PlayerBase.SetGoalBase(target);
     this.TargetPlayerNum = target.PlayerNum;
        // target.baseDestroyed += GetNewTargetBase;
 }
Esempio n. 9
0
        public void SetBase(Base playerBase)
        {
            this.PlayerBase = playerBase;

            if (Type == PlayerType.Human && avatar == null)
            {
                SetupAvatar();
            }
            // TileMap2.SetBase(playerBase);
        }
Esempio n. 10
0
 public void PlayerSetup(int playerNum, int teamNum, Base gameObject, PlayerType playerType)
 {
     SharedSetup(playerNum, teamNum, playerType);
     SetBase(gameObject);
 }
 public static void SetBaseFor(int playerNum, Base playerBase )
 {
     Players[playerNum].SetBase(playerBase);
 }