We want to create a simulation of a conflict between two


Hero Project -

We want to create a simulation of a conflict between two groups of heros.

1. The simulation will consist of a list of at least one instance of class Super for each side.

2. Each instance of class Super will contain the following information:

a. Id

b. X, Y, Z location in space

c. Physical attributes (strength, endurance, agility, speed)

d. List of powers (p1...pn)

e. List of equipment (e1..en)

f. List of Super * called Target (which might be one or more)

3. A power has the following attributes:

a. Effect  (strength, endurance, agility, speed)is a modifier

i. Example (-10, -20, 0, 0)

ii. Example (+4, 0, +2, 0)

b. Duration

c. Type: single or multiple targets

d. Range

4. Equipment has one or more powers

5. A round will consist of a number of attacks between the teams.

a. Order will be determined by a randomly augmented speed.

6. An attack will consist of a character handing one or more targets an effect.

7. Combat: To-Hit phase followed by a Damage Phase

a. To Hit is computed as 50+(atk(speed + agility) - def(speed +agility)) is compared to a random 1 to 100 value with a hit scored with the random is the hit number or less.

b. Damage is computed as RawDamage = (50+(atk(str+spd) - def(agility+endurance)))

Damage = RawDam*(100+atk(endurance))/2000.

Damage is subtracted from the defenders Endurance score

All powers, equipment and weapons have a set of the attribute (effect) scores.

Development-

1. Design the test cases for an object

2. Create instances of that object

3. Test that object

4. Rinse and repeat for base objects.

Effect, Power, Equip

I. Create two lists of characters, TeamA, TeamB

II. Sort by speed

III. Character with highest speed goes first

a. Choose target by proximity

b. Choose power randomly

c. Move if necessary to use power

d. Attempt to hit

e. If hit is successful then compute damage

f. Apply damage to targets endurance (health)

IV. The next highest speed goes next regardless of team until all chars have had a turn. 

Rinse and repeat until one team has all endurance scores reduced to zero.

Request for Solution File

Ask an Expert for Answer!!
Dissertation: We want to create a simulation of a conflict between two
Reference No:- TGS01594205

Expected delivery within 24 Hours