-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActor.cs
More file actions
79 lines (69 loc) · 1.83 KB
/
Actor.cs
File metadata and controls
79 lines (69 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace World1
{
public class Actor : GameObject
{
private int _cunning = 1;
public int Cunning
{
get { return _cunning; }
set { _cunning = value; }
}
private int _brawn = 1;
public int Brawn
{
get { return _brawn; }
set { _brawn = value; }
}
private int _wit = 1;
public int Wit
{
get { return _wit; }
set { _wit = value; }
}
private int _curHealth = 1;
public int CurrentHealth
{
get { return _curHealth; }
set { _curHealth = value; }
}
private int _curMana = 0;
public int CurrentMana
{
get { return _curMana; }
set { _curMana = value; }
}
private int _curEnergy = 1;
public int CurrentEnergy
{
get { return _curEnergy; }
set { _curEnergy = value; }
}
private int _maxHealth = 1;
public int MaximumHealth
{
get { return _maxHealth; }
set { _maxHealth = value; }
}
private int _maxMana = 0;
public int MaximumMana
{
get { return _maxMana; }
set { _maxMana = value; }
}
private int _maxEnergy = 1;
public int MaximumEnergy
{
get { return _maxEnergy; }
set { _maxEnergy = value; }
}
public Actor() {}
public Actor(string identifier, string description, int location) : base(identifier, description)
{
setLocation(location);
}
}
}