Beispiel #1
0
        public Base(World world, CaptureTheFlag captureTheFlag, Vector2 position, Team team) : base(world)
        {
            this.Team            = team;
            this.Position        = position;
            this.Sprite          = Sprites.ctf_base;
            this.AngularVelocity = SPEED_STOPPED;
            this.Size            = 200;
            this.CaptureTheFlag  = captureTheFlag;

            this.BaseGroup   = new ActorGroup(world);
            BaseGroup.ZIndex = 50;

            this.Group = BaseGroup;
        }
Beispiel #2
0
        public Base(CaptureTheFlag captureTheFlag, Vector2 position, Team team)
        {
            this.Team            = team;
            this.Position        = position;
            this.Sprite          = Sprites.ctf_base;
            this.AngularVelocity = SPEED_STOPPED;
            this.Size            = 200;
            this.CaptureTheFlag  = captureTheFlag;
            CausesCollisions     = true;

            this.BaseGroup = new ActorGroup();

            BaseGroup.Init(captureTheFlag.World);
            this.Group = BaseGroup;
        }