Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2008, 10:36:49 AM (17 years ago)
Author:
landauf
Message:

added something like an AI… or at least something thats pretty close to what we call AI. it's not that clever, sometimes it does some sign errors. but hey, I don't care, at least it makes the game look more living.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/objects/SpaceShip.h

    r1454 r1479  
    7676            static void moveLateral(float value);
    7777            static void fire();
     78            void setMovePitch(float value);
     79            void setMoveYaw(float value);
     80            void setMoveRoll(float value);
     81            void setMoveLongitudinal(float value);
     82            void setMoveLateral(float value);
     83            void doFire();
    7884
    7985            float getMaxSpeed();
     
    8288            Camera* getCamera();
    8389
     90            int getTeamNr() const
     91                { return this->teamNr_; }
     92            int getHealth() const
     93                { return this->health_; }
     94
    8495            bool getMyShip(){return myShip_;}
    8596
    8697        protected:
    87             int teamNr_;
    88             int health_;
     98            void setTeamNr(int teamNr)
     99                { this->teamNr_ = teamNr; }
    89100
    90101        private:
    91102            void createCamera();
     103            virtual ColourValue getProjectileColour() const
     104                { return ColourValue(1.0, 1.0, 0.5); }
    92105
    93106            Vector3 testvector_;
     
    143156            bool myShip_;
    144157
     158            int teamNr_;
     159            int health_;
     160
    145161            static SpaceShip* instance_s;
    146162    };
Note: See TracChangeset for help on using the changeset viewer.