oo-70-245-1

oo-70-245-1 Commit Details


Date:2015-10-14 12:40:07 (9 years 2 months ago)
Author:Natalie Adams
Branch:master
Commit:ba433996b4128e1332da1f6c9b941d40cd3be9eb
Parents: 300d1a3d47f31f8bfc0a4e7823340322ad599faa
Message:updating homework 1 help

Changes:

File differences

Homework 1 - base.cs
2929
3030
3131
32
33
32
33
34
35
36
37
3438
3539
3640
37
38
41
42
43
44
45
46
3947
4048
4149
......
4957
5058
5159
52
60
61
62
5363
// Creating 2 enemies
// Note how they implemented the abstract methods defined in the Enemy class
class Paladin : Enemy {
public void Speak() { //do something }
public void Attack(Player p) { //do something }
public void Speak() {
//do something
}
public void Attack(Player p) {
//do something
}
}
class Wizard : Enemy {
public void Speak() { // do something }
public void Attack(Player p) { //do something }
public void Speak() {
// do something
}
public void Attack(Player p) {
//do something
}
}
// Defining a player class per the homework
set { _health = value; }
}
public void Attack(Enemy e) { // do something }
public void Attack(Enemy e) {
// do something
}
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.07220s using 14 queries.