Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using Jypeli; |
---|
6 | |
---|
7 | namespace Entity |
---|
8 | { |
---|
9 | public abstract class EntityBase : PhysicsObject |
---|
10 | { |
---|
11 | protected TheDungeonGame game; |
---|
12 | protected int maxHealth; |
---|
13 | |
---|
14 | public EntityBase(TheDungeonGame game, Vector pos, Vector size, Shape shape) |
---|
15 | : base(size.X, size.Y, shape) |
---|
16 | { |
---|
17 | this.game = game; |
---|
18 | Position = pos; |
---|
19 | } |
---|
20 | |
---|
21 | public abstract void init(); |
---|
22 | |
---|
23 | public EntityBase setMaxHealth(int health) |
---|
24 | { |
---|
25 | maxHealth = health; |
---|
26 | return this; |
---|
27 | } |
---|
28 | |
---|
29 | public EntityBase setBrains(Brain brain) |
---|
30 | { |
---|
31 | Brain = brain; |
---|
32 | return this; |
---|
33 | } |
---|
34 | |
---|
35 | } |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.