Exemple #1
0
        public override void AddMainLogic()
        {
            System.Console.WriteLine(ReturnInfo());
            ReturnCode("./TheoreticalInfo/");
            //BA-1 RELATED
            Timer timerInstance = new Timer();

            timerInstance.AddLogic();

            //BA-2 RELATED
            AInstacte aInstance = new AInstacte();

            aInstance.AddLogic();

            //BA-4 RELATED
            DEV4_Int dev4_IntInstance = new DEV4_Int();

            dev4_IntInstance.AddLogic();

            //BA-5 RELATED
            Adventure adventureInstance = new Adventure();

            adventureInstance.AddLogic();

            //BA-6 RELATED
            SciFi scifiInstance = new SciFi();

            scifiInstance.AddLogic();

            //BA-7 RELATED
            PlayerInterfaces playerInterfacesInstance = new PlayerInterfaces();

            playerInterfacesInstance.AddLogic();

            //BA-8 RELATED
            PersonInterfaces2 personInterFaces2Instance = new PersonInterfaces2();

            personInterFaces2Instance.AddLogic();

            //BA-9 RELATED
            AccessModifiers accesModifiersInstance = new AccessModifiers();

            accesModifiersInstance.AddLogic();

            //BA-10 FCKING GOTIT
            Vector2Interfaces vector2InterfacesInstance = new Vector2Interfaces();

            vector2InterfacesInstance.AddLogic();
        }
Exemple #2
0
        public override void AddLogic()
        {
            var             p1  = new Vector2Interfaces(0.0, 0.0);
            var             v1  = new Vector2Interfaces(10.0, 10.0);
            SimpleSpaceShip s   = new SimpleSpaceShip(p1, v1);
            EnterpriseNX01  nx1 = new EnterpriseNX01(s);

            nx1.GoToWarp(3.0);

            var             p2 = new Vector2Interfaces(0.0, 100.0);
            var             v2 = new Vector2Interfaces(10.0, 10.0);
            SimpleSpaceShip tv = new SimpleSpaceShip(p2, v2);

            Ship[] fleet = new Ship[2] {
                nx1, tv
            };

            for (int i = 0; i < fleet.Length; i = i + 1)
            {
                fleet[i].Update(0.16);
            }
            this.ReturnsAnswer(fleet.ToString());
            System.Console.WriteLine(this.ReturnCorrect());
        }
Exemple #3
0
 public void Sum(Vector2Interfaces v1)
 {
     this.x = this.x + v1.x;
     this.y = this.y + v1.y;
 }
Exemple #4
0
        public Vector2Interfaces Mul(double c)
        {
            Vector2Interfaces res = new Vector2Interfaces((this.x * c), (this.y * c));

            return(res);
        }
Exemple #5
0
 public SimpleSpaceShip(Vector2Interfaces pos, Vector2Interfaces vel)
 {
     this.position = pos;
     this.velocity = vel;
 }