Revision 4592,
831 bytes
checked in by dezhidki, 10 years ago
(diff) |
Lisätty toimiva sotilas. Korjattu OrderMove:n epätarkkuuksia. Lisätty AStariin muuttuja, jolla voi jättää loppupisteen läpipääsemättömyyden huomioimatta.
|
Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using CastleMaster.World; |
---|
6 | using CastleMaster.Graphics; |
---|
7 | using CastleMaster.Units; |
---|
8 | |
---|
9 | namespace CastleMaster.Players |
---|
10 | { |
---|
11 | public abstract class Player |
---|
12 | { |
---|
13 | protected Team team; |
---|
14 | protected Level level; |
---|
15 | protected Camera camera; |
---|
16 | |
---|
17 | public Player(Team team, Level level, Camera camera) |
---|
18 | { |
---|
19 | this.team = team; |
---|
20 | this.level = level; |
---|
21 | this.camera = camera; |
---|
22 | } |
---|
23 | |
---|
24 | public Level Level { get { return level; } } |
---|
25 | |
---|
26 | public Camera Camera { get { return camera; } } |
---|
27 | |
---|
28 | public Team Team { get { return team; } } |
---|
29 | |
---|
30 | public virtual void Update() |
---|
31 | { |
---|
32 | } |
---|
33 | |
---|
34 | public abstract Unit SelectUnit(Team team); |
---|
35 | } |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.