Ejemplo n.º 1
0
        public Elemental(RoomScene room, byte subType, FVector pos, Dictionary <string, short> paramList) : base(room, subType, pos, paramList)
        {
            // Physics, Collisions, etc.
            this.physics = new Physics(this);
            this.SetCollide(CollideEnum.NoTileCollide);

            // Assign Flight Behavior
            this.behavior = FlightBehavior.AssignFlightMotion(this, paramList);
        }
Ejemplo n.º 2
0
        public PlatformMove(RoomScene room, byte subType, FVector pos, Dictionary <string, short> paramList) : base(room, subType, pos, paramList)
        {
            this.Meta = Systems.mapper.ObjectMetaData[(byte)ObjectEnum.PlatformMove].meta;
            this.AssignSubType(subType);
            this.AssignBoundsByAtlas(0, 0, 0, 0);

            // Assign Flight Behavior
            this.behavior = FlightBehavior.AssignFlightMotion(this, paramList);
        }
Ejemplo n.º 3
0
        public Dire(RoomScene room, byte subType, FVector pos, Dictionary <string, short> paramList) : base(room, subType, pos, paramList)
        {
            this.Meta = Systems.mapper.ObjectMetaData[(byte)ObjectEnum.Dire].meta;

            // Physics, Collisions, etc.
            this.physics        = new Physics(this);
            this.shellCollision = true;
            this.SetCollide(CollideEnum.NoTileCollide);

            // Assign Flight Behavior
            this.behavior = FlightBehavior.AssignFlightMotion(this, paramList);

            this.AssignSubType(subType);
            this.AssignBoundsByAtlas(6, 28, -28, -6);
        }
Ejemplo n.º 4
0
        public ClusterDot(RoomScene room, byte subType, FVector pos, Dictionary <string, short> paramList) : base(room, subType, pos, paramList)
        {
            this.Meta = Systems.mapper.ObjectMetaData[(byte)ObjectEnum.ClusterDot].meta;

            // Physics, Collisions, etc.
            this.physics = new Physics(this);
            this.SetCollide(CollideEnum.NoCollide);

            this.AssignSubType(subType);
            this.AssignBoundsByAtlas(16, 16, -16, -16);

            // Add Behavior to Clusters
            // Note: Must be after Atlas Bounds (it depends on it).
            this.behavior = FlightBehavior.AssignFlightMotion(this, paramList);
        }
Ejemplo n.º 5
0
        public Saw(RoomScene room, byte subType, FVector pos, Dictionary <string, short> paramList) : base(room, subType, pos, paramList)
        {
            this.Meta = Systems.mapper.ObjectMetaData[(byte)ObjectEnum.Saw].meta;

            // Physics, Collisions, etc.
            this.physics = new Physics(this);
            this.SetCollide(CollideEnum.NoTileCollide);

            // Assign Flight Behavior
            this.behavior = FlightBehavior.AssignFlightMotion(this, paramList);

            this.Damage = DamageStrength.Standard;

            this.AssignSubType(subType);
        }
Ejemplo n.º 6
0
        public HoveringEye(RoomScene room, byte subType, FVector pos, Dictionary <string, short> paramList) : base(room, subType, pos, paramList)
        {
            this.Meta = Systems.mapper.ObjectMetaData[(byte)ObjectEnum.HoveringEye].meta;

            // Physics, Collisions, etc.
            this.physics        = new Physics(this);
            this.shellCollision = true;
            this.SetCollide(CollideEnum.NoTileCollide);

            // Assign Flight Behavior
            this.behavior = FlightBehavior.AssignFlightMotion(this, paramList);

            // Attack Details
            this.attack    = new AttackSequence(paramList);
            this.attSpeed  = FInt.Create(paramList == null || !paramList.ContainsKey("speed") ? BaseAttackSpeed : paramList["speed"] * 0.01 * BaseAttackSpeed);
            this.attSpread = FInt.Create(paramList == null || !paramList.ContainsKey("spread") ? 0.3f : paramList["spread"] * 0.01f * 0.3f);
            this.attCount  = (byte)(paramList == null || !paramList.ContainsKey("count") ? 1 : paramList["count"]);

            this.AssignSubType(subType);
            this.AssignBoundsByAtlas(6, 6, -6, -6);
        }
Ejemplo n.º 7
0
 public MallardDuck()
 {
     QuackBehavior  = new QuackBehavior();
     FlightBehavior = new FlightBehavior();
 }