Beispiel #1
0
        public void activate(TurretBase turBase, int i)
        {
            activeTurr = turBase;

            if (i == 0) //base does not have turret
            {
                active = true;
                newTurr = true;
                Utilities.softPaused = true;
            }
            else //base does have turret
            {
                newTurr = false;
                active = true;
                Utilities.softPaused = true;
            }

            modelManager.changeVisible(-1);
        }
 public void changeColor(TurretBase.TurretType type, Game1 game)
 {
     switch((int)type)
     {
         default: //none
             col = Color.Aqua;
             break;
         case 1:
             col = Color.Red;
             break;
         case 2:
             col = Color.Orange;
             break;
         case 3:
             col = Color.SeaGreen;
             break;
     }
     game.GraphicsDevice.SetRenderTarget(rTarg);
     sb.Begin();
     sb.Draw(TextureManager.pureWhite, Vector2.Zero, col);
     sb.End();
     game.GraphicsDevice.SetRenderTarget(null);
 }
Beispiel #3
0
 public void setBase(TurretBase turBase)
 {
     activeTurr = turBase;
 }