public NevskiyShip(ILevelInfo info) : base(info) { Width = 50; Height = 50; ActorType = ActorType.Enemy; }
public PlayerShip(ILevelInfo info) : base(info) { Width = 22; Height = 26; ActorType = ActorType.Player; }
public LightingBullet(ILevelInfo info, BaseActor owner) : base (info, owner) { Speed = 20; Width = 30; Height = 30; ActorType = ActorType.LightWeapon; }
public Superman(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Superman; }
public Spaceship(ILevelInfo info) : base(info) { Width = 40; Height = 40; ActorType = ActorType.Enemy; }
public Bullet(ILevelInfo info) : base(info) { Width = 3; Height = 3; ActorType = ActorType.Player; }
public StarOfDeathShip(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Enemy; }
public BulletER(ILevelInfo info) : base(info) { Width = 6; Height = 12; ActorType = ActorType.Enemy; }
public Thunderbolt(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Saboteur; }
public ShipCool(ILevelInfo info) : base(info) { Width = 30; Height = Height + 25; ActorType = ActorType.Enemy; }
public Ship_red(ILevelInfo info) : base(info) { Width = 25; Height = 35; ActorType = ActorType.Enemy; }
public EnemyBullet(ILevelInfo info) : base(info) { Width = 5; Height = 5; ActorType = ActorType.Enemy; }
protected BaseActor(ILevelInfo info) { Info = info; Position = new Point(0, 0); IsAlive = true; CanDrop = false; }
public Enemy1ForLevelTwo(ILevelInfo info) : base(info) { Width = 40; Height = 40; ActorType = ActorType.Enemy; }
public Prepyt(ILevelInfo info) : base(info) { Width = 50; Height = 30; ActorType = ActorType.Enemy; }
public ShipNew(ILevelInfo info) : base(info) { Width = Width; Height = Height; ActorType = ActorType.Enemy; }
public Lightning(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Lightning; }
public MyShip(ILevelInfo info) : base(info) { Width = 40; Height = 35; ActorType = ActorType.Enemy; }
public Ship2(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Enemy; }
public CLightning(ILevelInfo info) : base(info) { Width = 25; Height = 25; ActorType = ActorType.Lightning; }
public Ship(ILevelInfo info) : base(info) { Width = 40; Height = 30; ActorType = ActorType.Enemy; ImageName = @"Assets\greenship.png"; ShootInterval = 2000; }
public Lighting(ILevelInfo info) : base(info) { Width = 50; Height = 50; ActorType = ActorType.Light; random = new Random(); }
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; }
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; }
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); }
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); }
public void Program(ILevelInfo robot) { var leftIsWall = robot.IsLeftWall(); if (leftIsWall) { robot.GoRight(); robot.GoRight(); robot.GoRight(); } else { robot.GoLeft(); robot.GoLeft(); robot.GoLeft(); } }
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); }
public override void OnLoadingLevelEntitiesStart(ILevelInfo pLevel) { LoadingLevelEntitiesStart?.Invoke(new EventArgs <ILevelInfo>(pLevel)); }
public override void OnLoadingError(ILevelInfo pLevel, string error) { LoadingError?.Invoke(new EventArgs <ILevelInfo, string>(pLevel, error)); }
protected virtual TranscodeFormatTuple?GetFormat(IMetaData meta, ILevelInfo li, bool linear = false) { return(TranscodeFormatHelper.GetFormatsForImage(meta, li, linear)); }
protected BaseActor(ILevelInfo info) { Info = info; Position = new Point(0, 0); IsAlive = true; }
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; }
public RedShip(ILevelInfo info) : base(info) { ImageName = @"Assets\redship.png"; ShootInterval = 1000; }
public BulletER(ILevelInfo info) : base(info) { Width = 6; Height = 12; ActorType = ActorType.Enemy; }
public Bullet(ILevelInfo info) : base(info) { Width = 5; Height = 10; ActorType = ActorType.Player; }
private Walls(ILevelInfo info) : base(info) { UnitType = UnitType.Wall; }
protected DethAnimationActor(ILevelInfo info) : base(info) { }
protected virtual TranscodeFormatTuple?GetFormat(IMetaData meta, ILevelInfo li) { return(TranscodeFormatHelper.GetFormatsForImage(meta, li)); }
protected DethAnimationActor(ILevelInfo info) : base(info) { }
public override void OnLoadingProgress(ILevelInfo pLevel, int progressAmount) { LoadingProgress?.Invoke(new EventArgs <ILevelInfo, int>(pLevel, progressAmount)); }
/// <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); }
public override void OnUnloadComplete(ILevelInfo pLevel) { UnloadingComplete?.Invoke(new EventArgs <ILevelInfo>(pLevel)); }
protected BaseUnit(ILevelInfo info) { Info = info; }
public Ship(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Enemy; }
public Block(ILevelInfo info) : base(info) { Width = DefaultWidth; Height = 15; UnitType = UnitType.Block; }
public GooBall(ILevelInfo info) : base(info) { }
public Thunderbolt(ILevelInfo info) : base(info) { Width = 30; Height = 30; ActorType = ActorType.Thunderbolt; }