Ejemplo n.º 1
0
        public void AddAnimationShotType(string name, int collision, Color delay_color)
        {
            if (ContainsShotName(name))
            {
                throw new ArgumentException("Shot to be added has a duplicate name.");
            }

            ShotTypes.Add(new AnimationShotType(name, collision, delay_color));
        }
Ejemplo n.º 2
0
        public void AddShotType(ShotType shot_type)
        {
            if (ContainsShotName(shot_type.Name))
            {
                throw new ArgumentException("Shot to be added has a duplicate name.");
            }

            ShotTypes.Add(shot_type);
        }
Ejemplo n.º 3
0
        public void AddStillShotType(string name, string sprite_name, int collision, Color delay_color)
        {
            if (ContainsShotName(name))
            {
                throw new ArgumentException("Shot to be added has a duplicate name.");
            }

            ShotTypes.Add(new StillShotType(name, GetSpriteByName(sprite_name), collision, delay_color));
        }