Пример #1
0
        public Enemy_Tama_01(double x, double y, EnemyCommon.TAMA_KIND_e tamaKind, EnemyCommon.TAMA_COLOR_e tamaColor, double speed, double angle, int absorbableWeapon = -1)
            : base(x, y, Kind_e.TAMA, 0, 0, absorbableWeapon)
        {
            // x
            // y
            // tamaKind
            // tamaColor
            if (speed < 0.1 || 100.0 < speed)
            {
                throw new DDError();
            }
            if (angle < -3.0 * Math.PI || 3.0 * Math.PI < angle)
            {
                throw new DDError();
            }

            this.TamaKind  = tamaKind;
            this.TamaColor = tamaColor;
            this.Speed     = speed;
            this.Angle     = angle;
        }
Пример #2
0
 public static DDPicture GetTamaPicture(EnemyCommon.TAMA_KIND_e kind, EnemyCommon.TAMA_COLOR_e color)
 {
     return(Ground.I.Picture2.D_TAMA_00[(int)kind][(int)color]);
 }