示例#1
0
文件: Drone.cs 项目: ChrisLR/HiveRL
        public Drone(Maps.Map map, int x, int y) : base("Alien Drone", 10, map)
        {
            this.Display.SadEntity.Animation.SetGlyph(0, 0, 'D');
            this.RegisterComponent(new Components.SimpleVision(this, 10));
            this.RegisterComponent(new Components.SimpleAI(this));

            // TODO This should not be here
            this.Location.SetPos(x, y);
            map.AddGameObject(this);
        }