Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2017, 4:35:38 PM (6 years ago)
Author:
kohlia
Message:

Crashes when killing the player

File:
1 edited

Legend:

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

    r11638 r11662  
    1414class ScriptableController;
    1515class WorldEntity;
     16class Pawn;
    1617
    1718/**
     
    2425class ScriptableControllerAPI
    2526{
     27friend class ScriptableController;
     28
    2629public:
    2730    /**
     
    140143
    141144    /**
     145     * @brief Spawn an object
     146     * @param type Name of the class of the object you want to spawn
     147     * @param id The newly created ID that can be used to access this object
     148     */
     149    void spawn(std::string type, std::string id);
     150
     151    /**
    142152     * @brief Set the position of an object
    143153     * @param id The ID of the object
     
    185195// ### API END ################################################################
    186196
     197private:
    187198    /**
    188199     * @brief Called by ScriptableController when a pawn is killed
     
    191202     * Calls the lua callbacks associated with this event.
    192203     */
    193     void pawnKilled(std::string id);
     204    void pawnKilled(std::string id, Pawn *pawn);
    194205
    195206    /**
     
    202213    void pawnHit(std::string target_id, std::string source_id, double new_health, double new_shield);
    203214
    204 private:
    205215    /**
    206216     * @brief Groups everything together that is needed to handle a near-object event
Note: See TracChangeset for help on using the changeset viewer.