- Timestamp:
- Oct 20, 2008, 12:04:03 AM (16 years ago)
- Location:
- code/branches/objecthierarchy
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/CMakeLists.txt
r1959 r1961 6 6 GameState.cc 7 7 Language.cc 8 Lua bind.cc8 LuaBind.cc 9 9 ObjectListBase.cc 10 10 OrxonoxClass.cc -
code/branches/objecthierarchy/src/core/LuaBind.cc
r1959 r1961 215 215 bool bInPrintFunction = true; 216 216 size_t start = 0; 217 size_t end = 0;217 size_t end = 0; 218 218 219 219 do -
code/branches/objecthierarchy/src/orxonox/objects/DistanceTrigger.cc
r1959 r1961 71 71 void DistanceTrigger::addTargets(std::string targets) 72 72 { 73 Identifier* targetId = ID(targets);73 Identifier* targetId = ClassByString(targets); 74 74 targetMask_.include(targetId); 75 75 // trigger shouldn't react on itself or other triggers … … 80 80 void DistanceTrigger::removeTargets(std::string targets) 81 81 { 82 Identifier* targetId = ID(targets);82 Identifier* targetId = ClassByString(targets); 83 83 targetMask_.exclude(targetId); 84 84 } -
code/branches/objecthierarchy/src/orxonox/objects/Script.cc
r1959 r1961 30 30 #include "Script.h" 31 31 32 #include "util/Debug.h" 32 33 #include "core/CoreIncludes.h" 33 34 #include "core/XMLPort.h" 34 35 #include "core/LuaBind.h" 35 #include "core/Debug.h"36 36 37 37 namespace orxonox -
code/branches/objecthierarchy/src/orxonox/objects/Trigger.cc
r1959 r1961 31 31 32 32 #include <OgreBillboard.h> 33 #include " core/Debug.h"33 #include "util/Debug.h" 34 34 #include "core/CoreIncludes.h" 35 35 #include "core/ConsoleCommand.h" … … 39 39 { 40 40 41 ConsoleCommand(Trigger, setVisibility, AccessLevel::Debug, false).setDefaultValues(0);41 SetConsoleCommand(Trigger, setVisibility, false).accessLevel(AccessLevel::User).defaultValues(0); 42 42 43 43 CreateFactory(Trigger); … … 74 74 { 75 75 if(bVisible) 76 this->setScale(2 ,2,2);76 this->setScale(2); 77 77 else 78 this->setScale(0 ,0,0);78 this->setScale(0); 79 79 } 80 80 … … 84 84 return NULL; 85 85 86 std::set<Trigger*>:: iterator it;86 std::set<Trigger*>::const_iterator it; 87 87 it = children_.begin(); 88 88 … … 226 226 //XMLPortParamLoadOnlyTemplate(Trigger, "mode", setMode, xmlelement, mode, std::string); 227 227 228 XMLPortObject(Trigger, Trigger, "", addTrigger, getTrigger, xmlelement, mode, false, true); 228 // what are those last two parameters? 229 //XMLPortObject(Trigger, Trigger, "", addTrigger, getTrigger, xmlelement, mode, false, true); 230 XMLPortObject(Trigger, Trigger, "", addTrigger, getTrigger, xmlelement, mode); 229 231 230 232 this->init(); -
code/branches/objecthierarchy/src/orxonox/objects/Trigger.h
r1959 r1961 35 35 #include "OrxonoxPrereqs.h" 36 36 37 #include " WorldEntity.h"37 #include "worldentities/PositionableEntity.h" 38 38 39 39 #include "../tools/BillboardSet.h" … … 48 48 }; 49 49 50 class _OrxonoxExport Trigger : public WorldEntity50 class _OrxonoxExport Trigger : public PositionableEntity 51 51 { 52 52 public: -
code/branches/objecthierarchy/visual_studio/vc8/core.vcproj
r1896 r1961 173 173 </File> 174 174 <File 175 RelativePath="..\..\src\core\LuaBind.cc" 176 > 177 </File> 178 <File 175 179 RelativePath="..\..\src\core\OrxonoxClass.cc" 176 180 > … … 178 182 <File 179 183 RelativePath="..\..\src\core\RootGameState.cc" 180 >181 </File>182 <File183 RelativePath="..\..\src\core\Script.cc"184 184 > 185 185 </File> … … 405 405 </File> 406 406 <File 407 RelativePath="..\..\src\core\LuaBind.h" 408 > 409 </File> 410 <File 407 411 RelativePath="..\..\src\core\OrxonoxClass.h" 408 412 > … … 410 414 <File 411 415 RelativePath="..\..\src\core\RootGameState.h" 412 >413 </File>414 <File415 RelativePath="..\..\src\core\Script.h"416 416 > 417 417 </File> -
code/branches/objecthierarchy/visual_studio/vc8/orxonox.vcproj
r1947 r1961 200 200 </File> 201 201 <File 202 RelativePath="..\..\src\orxonox\objects\DistanceTrigger.cc" 203 > 204 </File> 205 <File 202 206 RelativePath="..\..\src\orxonox\objects\Radar.cc" 203 207 > … … 212 216 </File> 213 217 <File 218 RelativePath="..\..\src\orxonox\objects\Script.cc" 219 > 220 </File> 221 <File 214 222 RelativePath="..\..\src\orxonox\objects\Tickable.cc" 223 > 224 </File> 225 <File 226 RelativePath="..\..\src\orxonox\objects\Trigger.cc" 215 227 > 216 228 </File> … … 536 548 </File> 537 549 <File 550 RelativePath="..\..\src\orxonox\objects\DistanceTrigger.h" 551 > 552 </File> 553 <File 538 554 RelativePath="..\..\src\orxonox\objects\Radar.h" 539 555 > … … 548 564 </File> 549 565 <File 566 RelativePath="..\..\src\orxonox\objects\Script.h" 567 > 568 </File> 569 <File 550 570 RelativePath="..\..\src\orxonox\objects\Tickable.h" 571 > 572 </File> 573 <File 574 RelativePath="..\..\src\orxonox\objects\Trigger.h" 551 575 > 552 576 </File>
Note: See TracChangeset
for help on using the changeset viewer.