Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2015, 3:50:59 PM (9 years ago)
Author:
gania
Message:

Gani changed something

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/CommonController.h

    r10834 r10838  
    103103                        { return this->rank_; }
    104104                //----[/Rank data]----
     105                //----[Protect data]----
     106                    void setProtectXML( std::string val );
     107                    std::string getProtectXML ();
     108                    void setProtect (ControllableEntity* protect);
     109                    ControllableEntity* getProtect ();
     110                //----[/Protect data]----
    105111            //----[/XML data]----
    106112
     
    124130                float randomInRange(float a, float b);
    125131                static float distance(ControllableEntity* entity1, ControllableEntity* entity2);
    126                 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2);
     132                static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gt);
    127133                static bool isLooking( ControllableEntity* entityThatLooks, ControllableEntity* entityBeingLookedAt, float angle ) ;
    128134
     
    168174                bool bHasTargetOrientation_;
    169175                Quaternion targetOrientation_;
    170                 // Vector3 destination_;
    171                 // bool bHasDestination;
     176               
     177                Vector3 destination_;
     178                bool bHasDestination;
    172179            //----[/where-to-fly information]----
    173            
     180            //----[protect information]----
     181                WeakPtr<ControllableEntity> protect_;
     182            //----[/protect information]----
    174183            //----[who-to-kill information]----
    175184                WeakPtr<ControllableEntity> target_;
    176                 //WeakPtr<ControllableEntity> objectiveTarget_;
     185                WeakPtr<ControllableEntity> enemy_;
    177186
    178187                bool bHasPositionOfTarget_;
Note: See TracChangeset for help on using the changeset viewer.