Example #1
0
        /// <summary>
        /// Add
        /// </summary>
        /// <param name="type">Type</param>
        /// <param name="positionMatrix">Position matrix</param>
        public static void Add(AnimatedTypes type, Matrix positionMatrix,
			AnimatedGameObject.DropObject dropObject)
        {
            animatedObjects.Add(new AnimatedGameObject(type, positionMatrix,
                dropObject));
        }
Example #2
0
        /// <summary>
        /// Get drop percentages
        /// </summary>
        /// <param name="type">Type</param>
        /// <returns>Drop object</returns>
        public static AnimatedGameObject.DropObject GetDropPercentages(
				AnimatedTypes type)
        {
            for (int i = 0; i < 3; i++)
                if (RandomHelper.GetRandomFloat(0, 1) <
                        MonsterWeaponDropPercentages[(int)type, i])
                    return (AnimatedGameObject.DropObject)
                            ((int)AnimatedGameObject.DropObject.Club + i);

            return AnimatedGameObject.DropObject.None;
        }
Example #3
0
 /// <summary>
 /// Add
 /// </summary>
 /// <param name="type">Type</param>
 /// <param name="positionMatrix">Position matrix</param>
 public static void Add(AnimatedTypes type, Matrix positionMatrix)
 {
     animatedObjects.Add(new AnimatedGameObject(type, positionMatrix));
 }