Revision 2234,
893 bytes
checked in by teeevasa, 8 years ago
(diff) |
Talletus.
|
Line | |
---|
1 | using System; |
---|
2 | using Jypeli; |
---|
3 | using Jypeli.Assets; |
---|
4 | using Jypeli.Controls; |
---|
5 | using Jypeli.Effects; |
---|
6 | using Jypeli.Widgets; |
---|
7 | |
---|
8 | public class GenEnemy : GenCharacter |
---|
9 | { |
---|
10 | private string AItype |
---|
11 | { |
---|
12 | get; |
---|
13 | set; |
---|
14 | } |
---|
15 | |
---|
16 | public GenEnemy(double width, double height, Shape shape, int HP, string AI) |
---|
17 | : base(width, height, shape) |
---|
18 | { |
---|
19 | hitPoints = HP; |
---|
20 | AItype = AI; |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
24 | // Defines the functions that are required from all AIs |
---|
25 | interface AI |
---|
26 | { |
---|
27 | //void move(); |
---|
28 | } |
---|
29 | |
---|
30 | /* Implementation of the "stupid" Patrol-AI |
---|
31 | * The Patrol-AI just walks back and forth, waiting for the player to come into sight |
---|
32 | * and then it attacks the player.*/ |
---|
33 | public class PatrolAI : AI |
---|
34 | { |
---|
35 | |
---|
36 | } |
---|
37 | |
---|
38 | /* Implementation of the Seeker-AI |
---|
39 | * The Seeker-AI, in contrast to the Seeker-AI, actively seeks the player.*/ |
---|
40 | public class SeekerAI : AI |
---|
41 | { |
---|
42 | |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.