Example #1
0
 public static ScoopType GetNext(ScoopType t)
 {
     if (t == (ScoopType)'C')
     {
         return((ScoopType)'V');
     }
     if (t == (ScoopType)'V')
     {
         return((ScoopType)'S');
     }
     return((ScoopType)'C');
 }
Example #2
0
 public static int TypeIndex(ScoopType t)
 {
     if (t == (ScoopType)'C')
     {
         return(0);
     }
     if (t == (ScoopType)'V')
     {
         return(1);
     }
     return(2);
 }
Example #3
0
        public void Initialize(Vector2 direction, Vector2 position, ScoopType type)
        {
            base.Initialize(direction, position);
            this.cost     = 1;
            this.damage   = 1;
            this.speed    = 300;
            this.lifetime = 1;

            // If this scoop has been reused, set it to use the correct texture.
            if (!IsNewProjectile && this.type != type)
            {
                this.type = type;
                SetScoopTextures();
            }

            this.type = type;
        }