示例#1
0
 public NevskiyShip(ILevelInfo info)
     : base(info)
 {
     Width = 50;
       Height = 50;
       ActorType = ActorType.Enemy;
 }
示例#2
0
 public PlayerShip(ILevelInfo info)
     : base(info)
 {
     Width = 22;
       Height = 26;
       ActorType = ActorType.Player;
 }
示例#3
0
 public LightingBullet(ILevelInfo info, BaseActor owner) : base (info, owner)
 {
     Speed = 20;
     Width = 30;
     Height = 30;
     ActorType = ActorType.LightWeapon;
 }
示例#4
0
 public Superman(ILevelInfo info)
     : base(info)
 {
     Width = 30;
     Height = 30;
     ActorType = ActorType.Superman;
 }
示例#5
0
 public Spaceship(ILevelInfo info)
     : base(info)
 {
     Width = 40;
       Height = 40;
       ActorType = ActorType.Enemy;
 }
示例#6
0
 public Bullet(ILevelInfo info)
     : base(info)
 {
     Width = 3;
       Height = 3;
       ActorType = ActorType.Player;
 }
示例#7
0
 public StarOfDeathShip(ILevelInfo info)
     : base(info)
 {
     Width = 30;
     Height = 30;
     ActorType = ActorType.Enemy;
 }
示例#8
0
 public BulletER(ILevelInfo info)
     : base(info)
 {
     Width = 6;
          Height = 12;
         ActorType = ActorType.Enemy;
 }
示例#9
0
 public Thunderbolt(ILevelInfo info)
     : base(info)
 {
     Width = 30;
     Height = 30;
     ActorType = ActorType.Saboteur;
 }
示例#10
0
 public ShipCool(ILevelInfo info)
     : base(info)
 {
     Width = 30;
       Height = Height + 25;
       ActorType = ActorType.Enemy;
 }
示例#11
0
 public Ship_red(ILevelInfo info)
     : base(info)
 {
     Width = 25;
     Height = 35;
     ActorType = ActorType.Enemy;
 }
示例#12
0
 public EnemyBullet(ILevelInfo info)
     : base(info)
 {
     Width = 5;
       Height = 5;
       ActorType = ActorType.Enemy;
 }
示例#13
0
 protected BaseActor(ILevelInfo info)
 {
     Info = info;
       Position = new Point(0, 0);
       IsAlive = true;
       CanDrop = false;
 }
示例#14
0
 public Enemy1ForLevelTwo(ILevelInfo info)
     : base(info)
 {
     Width = 40;
       Height = 40;
       ActorType = ActorType.Enemy;
 }
示例#15
0
 public Prepyt(ILevelInfo info)
     : base(info)
 {
     Width = 50;
       Height = 30;
       ActorType = ActorType.Enemy;
 }
示例#16
0
 public ShipNew(ILevelInfo info)
     : base(info)
 {
     Width = Width;
     Height = Height;
     ActorType = ActorType.Enemy;
 }
示例#17
0
 public Lightning(ILevelInfo info)
     : base(info)
 {
     Width = 30;
     Height = 30;
     ActorType = ActorType.Lightning;
 }
示例#18
0
 public MyShip(ILevelInfo info)
     : base(info)
 {
     Width = 40;
     Height = 35;
     ActorType = ActorType.Enemy;
 }
示例#19
0
 public Ship2(ILevelInfo info)
     : base(info)
 {
     Width = 30;
     Height = 30;
     ActorType = ActorType.Enemy;
 }
示例#20
0
 public CLightning(ILevelInfo info)
     : base(info)
 {
     Width = 25;
     Height = 25;
     ActorType = ActorType.Lightning;
 }
示例#21
0
文件: Ship.cs 项目: mishgan95/test
 public Ship(ILevelInfo info) : base(info)
 {
     Width = 40;
     Height = 30;
     ActorType = ActorType.Enemy;
     ImageName = @"Assets\greenship.png";
     ShootInterval = 2000;
 }
示例#22
0
 public Lighting(ILevelInfo info) : base(info)
 {
     Width = 50;
     Height = 50;
     ActorType = ActorType.Light;
     random = new Random();
     
 }
示例#23
0
 public LevelGenerator(Vector2 origin, ILevelInfo levelInfo)
 {
     _levelInfo = levelInfo;
     _origin = origin;
     _obstacleFactory = _levelInfo.ObstacleFactory;
     _floatingBlockFactory = _levelInfo.FloatingBlockFactory;
     _platformLeftPrefab = _levelInfo.PlatformLeftPrefab;
     _platformMiddlePrefab = _levelInfo.PlatformMiddlePrefab;
     _platformRightPrefab = _levelInfo.PlatformRightPrefab;
 }
示例#24
0
 public PlayerBullet(ILevelInfo info, BaseActor owner) : base(info)
 {
     Speed = 10;
     Width = 3;
     Height = 6;
     var point = new Point();
     point.X = owner.Position.X + owner.Width / 2;
     point.Y = owner.Position.Y;
     ActorType = ActorType.PlayerWeapon;
     Position = point;
 }
示例#25
0
        public static Walls GetBottomWall(ILevelInfo info)
        {
            Size levelSize = info.GetLevelSize();

            const int height = 30;
            Walls     wall   = new Walls(info)
            {
                Position = new Point(-height, levelSize.Height),
                Width    = levelSize.Width + 2 * height,
                Height   = height
            };

            return(wall);
        }
示例#26
0
        public static Walls GetRightWall(ILevelInfo info)
        {
            Size levelSize = info.GetLevelSize();

            const int width = 30;
            Walls     wall  = new Walls(info)
            {
                Position = new Point(levelSize.Width, -1 * width),
                Width    = width,
                Height   = levelSize.Height + 2 * width
            };

            return(wall);
        }
示例#27
0
        public void Program(ILevelInfo robot)
        {
            var leftIsWall = robot.IsLeftWall();

            if (leftIsWall)
            {
                robot.GoRight();
                robot.GoRight();
                robot.GoRight();
            }
            else
            {
                robot.GoLeft();
                robot.GoLeft();
                robot.GoLeft();
            }
        }
示例#28
0
 private void GoBack(Cell current, Cell previous, ILevelInfo robot)
 {
     if (previous.X < current.X)
     {
         robot.GoLeft();
     }
     else if (previous.Y < current.Y)
     {
         robot.GoUp();
     }
     else if (previous.X > current.X)
     {
         robot.GoRight();
     }
     else if (previous.Y > current.Y)
     {
         robot.GoDown();
     }
     else
     {
         throw new Exception("Ich kann nicht zurück");
     }
 }
        public static TranscodeFormatTuple?GetFormatsForImage(
            IMetaData meta,
            ILevelInfo li
            )
        {
            TranscodeFormatTuple?formats;

            formats = TranscodeFormatHelper.GetPreferredFormat(
                meta.hasAlpha,
                li.isPowerOfTwo,
                li.isSquare
                );

            if (!formats.HasValue && meta.hasAlpha)
            {
                // Fall back to transcode RGB-only to RGBA texture
                formats = TranscodeFormatHelper.GetPreferredFormat(
                    false,
                    li.isPowerOfTwo,
                    li.isSquare
                    );
            }
            return(formats);
        }
示例#30
0
 public override void OnLoadingLevelEntitiesStart(ILevelInfo pLevel)
 {
     LoadingLevelEntitiesStart?.Invoke(new EventArgs <ILevelInfo>(pLevel));
 }
示例#31
0
 public override void OnLoadingError(ILevelInfo pLevel, string error)
 {
     LoadingError?.Invoke(new EventArgs <ILevelInfo, string>(pLevel, error));
 }
示例#32
0
 protected virtual TranscodeFormatTuple?GetFormat(IMetaData meta, ILevelInfo li, bool linear = false)
 {
     return(TranscodeFormatHelper.GetFormatsForImage(meta, li, linear));
 }
示例#33
0
 protected BaseActor(ILevelInfo info)
 {
     Info     = info;
     Position = new Point(0, 0);
     IsAlive  = true;
 }
示例#34
0
文件: RedShip.cs 项目: mishgan95/test
 public RedShip(ILevelInfo info) : base(info)
 {
     ImageName = @"Assets\redship.png";
     ShootInterval = 1000;
 }
 public Player(IPlayableClass playerClass, IRace race, string name, IInventory inventory, IHealthInfo healthInfo, IGear equippedItems, ILevelInfo levelInfo)
 {
     this.Class         = playerClass;
     this.Race          = race;
     this.Name          = name;
     this.Inventory     = inventory;
     this.HealthInfo    = healthInfo;
     this.EquippedItems = equippedItems;
     this.LevelInfo     = levelInfo;
 }
示例#36
0
 public RedShip(ILevelInfo info) : base(info)
 {
     ImageName     = @"Assets\redship.png";
     ShootInterval = 1000;
 }
示例#37
0
 public BulletER(ILevelInfo info) : base(info)
 {
     Width     = 6;
     Height    = 12;
     ActorType = ActorType.Enemy;
 }
示例#38
0
 public Bullet(ILevelInfo info) : base(info)
 {
     Width     = 5;
     Height    = 10;
     ActorType = ActorType.Player;
 }
示例#39
0
 private Walls(ILevelInfo info)
     : base(info)
 {
     UnitType = UnitType.Wall;
 }
示例#40
0
 protected DethAnimationActor(ILevelInfo info)
     : base(info)
 {
 }
示例#41
0
 protected virtual TranscodeFormatTuple?GetFormat(IMetaData meta, ILevelInfo li)
 {
     return(TranscodeFormatHelper.GetFormatsForImage(meta, li));
 }
示例#42
0
 protected DethAnimationActor(ILevelInfo info)
     : base(info)
 {
 }
示例#43
0
 public override void OnLoadingProgress(ILevelInfo pLevel, int progressAmount)
 {
     LoadingProgress?.Invoke(new EventArgs <ILevelInfo, int>(pLevel, progressAmount));
 }
示例#44
0
 /// <summary>
 /// Called by the engine when loading a level has started.
 /// </summary>
 /// <param name="pLevel"></param>
 public override bool OnLoadingStart(ILevelInfo pLevel)
 {
     return(LoadingStart?.Invoke(new EventArgs <ILevelInfo>(pLevel)) ?? true);
 }
示例#45
0
 public override void OnUnloadComplete(ILevelInfo pLevel)
 {
     UnloadingComplete?.Invoke(new EventArgs <ILevelInfo>(pLevel));
 }
示例#46
0
 protected BaseUnit(ILevelInfo info)
 {
     Info = info;
 }
示例#47
0
 public Ship(ILevelInfo info) : base(info)
 {
     Width     = 30;
     Height    = 30;
     ActorType = ActorType.Enemy;
 }
示例#48
0
 public Block(ILevelInfo info) : base(info)
 {
     Width    = DefaultWidth;
     Height   = 15;
     UnitType = UnitType.Block;
 }
示例#49
0
 public GooBall(ILevelInfo info)
     : base(info)
 {
 }
示例#50
0
 public Thunderbolt(ILevelInfo info) : base(info)
 {
     Width     = 30;
     Height    = 30;
     ActorType = ActorType.Thunderbolt;
 }