예제 #1
0
파일: NevskiyShip.cs 프로젝트: LKND/galaxy1
 public NevskiyShip(ILevelInfo info)
     : base(info)
 {
     Width = 50;
       Height = 50;
       ActorType = ActorType.Enemy;
 }
예제 #2
0
파일: Player.cs 프로젝트: Alfach23/DolgovPI
 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
파일: Prepyt.cs 프로젝트: gruzchik17/Galaxy
 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
파일: Ship2.cs 프로젝트: Katee95/NewGalaxy1
 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
파일: Lighting.cs 프로젝트: mishgan95/test
 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");
     }
 }
예제 #29
0
        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;
 }