Course Solutions Uncategorized (Solved) : Homework 6 Instructions C Create Class Represents Weapon Computer Game Weapon Class Follow Q27383195 . . . .

(Solved) : Homework 6 Instructions C Create Class Represents Weapon Computer Game Weapon Class Follow Q27383195 . . . .

 

Homework #6

Instructions

In C#

• Create a class that represents a Weapon for acomputer game. The Weapon class has the following Properties: Name,Range, and Damage. The Range and Damage cannot have a negativevalue. The Weapon class has the following derived classes: Spell,MeleeWeapon, and Projectile. The Spell class has a property thatindicates the number of skill points required to cast the spell.For example: a stun spell needs 2 skill points to be cast. TheMeleeWeapon’s range property must be 1. No other value is allowedfor it. An example of a MeleeWeapon is a Mace. The Projectiveweapon has an ammo type

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post