Changeset 11099 for code/trunk/src/orxonox/controllers
- Timestamp:
- Jan 27, 2016, 6:50:51 PM (9 years ago)
- Location:
- code/trunk/src/orxonox/controllers
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/ActionpointController.h
r11071 r11099 94 94 @brief 95 95 XML method, example XML usage: 96 97 @code 96 98 <SpaceShip position="-2000, 1500, -1000" lookat="0,0,0" team=0 name="ss2"> 97 99 <templates> … … 110 112 </controller> 111 113 </SpaceShip> 114 @endcode 112 115 113 116 Full description: … … 116 119 If any WorldEntity that is not Actionpoint or its child being sent to actionpoints through XML, 117 120 action would be assumed to be Action::FLY and target position to be position of the entity. Also, if not Actionpoint 118 is passed, it is assumed to be in a loop. How it works is: in <actionpoints> first all Actionpoints between121 is passed, it is assumed to be in a loop. How it works is: in \<actionpoints\> first all Actionpoints between 119 122 first Actionpoint with loopStart=true and first following Actionpoint with loopEnd=true are included in a single loop. 120 123 If they are adjacent (in the input array) with WorldEntity, then WorldEntity is also in a loop. … … 122 125 123 126 Loop example: 127 128 @code 124 129 <SpaceShip position="-1500, 1500, -1000" lookat="0,0,0" team=0 name="ss1"> 125 130 <templates> … … 137 142 </controller> 138 143 </SpaceShip> 144 @endcode 139 145 140 146 other loop example: 147 148 @code 141 149 <SpaceShip position="-1500, -1500, -1500" lookat="0,0,0" team=0 name="ss1"> 142 150 <templates> … … 153 161 </DivisionController> 154 162 </controller> 155 </SpaceShip> 163 </SpaceShip> 164 @endcode 156 165 157 166 @note 158 Don't use several loops, and don't use WorldEntities as input to <actionpoints> as I didn't test it well, but you167 Don't use several loops, and don't use WorldEntities as input to \<actionpoints\> as I didn't test it well, but you 159 168 can try if feeling lucky. 160 169 */ -
code/trunk/src/orxonox/controllers/ArtificialController.cc
r11071 r11099 255 255 @brief Adds first waypoint of type name to the waypoint stack, which is within the searchDistance 256 256 @param name object-name of a point of interest (e.g. "PickupSpawner", "ForceField") 257 @param searchDistance The maximum distance to search 257 258 */ 258 259 void ArtificialController::updatePointsOfInterest(std::string name, float searchDistance) -
code/trunk/src/orxonox/controllers/MasterController.h
r11071 r11099 44 44 If no MasterController is initialized, none of ActionpointControllers will work. 45 45 Example: 46 47 @code 46 48 <Pawn position = "100000, 100000, 100000"> 47 49 <controller> … … 50 52 </controller> 51 53 </Pawn> 54 @endcode 52 55 */ 53 56 class _OrxonoxExport MasterController : public Controller, public Tickable
Note: See TracChangeset
for help on using the changeset viewer.