Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 4, 2017, 4:17:59 PM (7 years ago)
Author:
kohlia
Message:

Position/velocity setting works now, relative script paths not, added test script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_HS17/src/orxonox/scriptablecontroller/scriptable_controller.h

    r11606 r11638  
    5959
    6060    /**
     61     * @brief Register a MobileEntity to the ScriptableController
     62     * @param id The ID of the MobileEntity
     63     * @param entity The MobileEntity
     64     *
     65     * The ScriptableController needs a list of all MobileEntity's so it can
     66     * convert an ID to a MobileEntity.
     67     */
     68    void registerMobileEntity(std::string id, MobileEntity *entity);
     69
     70    /**
    6171     * @brief Register a Pawn to the ScriptableController
    6272     * @param id The ID of the Pawn
     
    101111
    102112    /**
     113     * @brief Convert an ID to a MobileEntity pointer
     114     * @param id The ID of the MobileEntity
     115     * @return A pointer to the MobileEntity, nullptr if it's not found
     116     */
     117    MobileEntity *getMobileEntityByID(std::string id) const;
     118
     119    /**
    103120     * @brief Convert an ID to a Pawt pointer
    104121     * @param id The ID of the Pawn
     
    111128    PlayerInfo *player_;
    112129    std::map<std::string, WorldEntity*> worldEntities_;
     130    std::map<std::string, MobileEntity*> mobileEntities_;
    113131    std::map<std::string, Pawn*> pawns_;
    114132    std::map<Pawn*, std::string> pawnsReverse_;
Note: See TracChangeset for help on using the changeset viewer.