Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1961 for code/branches


Ignore:
Timestamp:
Oct 20, 2008, 12:04:03 AM (15 years ago)
Author:
rgrieder
Message:

updated msvc files and adjusted merged files.

Location:
code/branches/objecthierarchy
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/CMakeLists.txt

    r1959 r1961  
    66  GameState.cc
    77  Language.cc
    8   Luabind.cc
     8  LuaBind.cc
    99  ObjectListBase.cc
    1010  OrxonoxClass.cc
  • code/branches/objecthierarchy/src/core/LuaBind.cc

    r1959 r1961  
    215215      bool bInPrintFunction = true;
    216216      size_t start = 0;
    217       size_tend = 0;
     217      size_t end = 0;
    218218
    219219      do
  • code/branches/objecthierarchy/src/orxonox/objects/DistanceTrigger.cc

    r1959 r1961  
    7171  void DistanceTrigger::addTargets(std::string targets)
    7272  {
    73     Identifier* targetId = ID(targets);
     73    Identifier* targetId = ClassByString(targets);
    7474    targetMask_.include(targetId);
    7575    // trigger shouldn't react on itself or other triggers
     
    8080  void DistanceTrigger::removeTargets(std::string targets)
    8181  {
    82     Identifier* targetId = ID(targets);
     82    Identifier* targetId = ClassByString(targets);
    8383    targetMask_.exclude(targetId);
    8484  }
  • code/branches/objecthierarchy/src/orxonox/objects/Script.cc

    r1959 r1961  
    3030#include "Script.h"
    3131
     32#include "util/Debug.h"
    3233#include "core/CoreIncludes.h"
    3334#include "core/XMLPort.h"
    3435#include "core/LuaBind.h"
    35 #include "core/Debug.h"
    3636
    3737namespace orxonox
  • code/branches/objecthierarchy/src/orxonox/objects/Trigger.cc

    r1959 r1961  
    3131
    3232#include <OgreBillboard.h>
    33 #include "core/Debug.h"
     33#include "util/Debug.h"
    3434#include "core/CoreIncludes.h"
    3535#include "core/ConsoleCommand.h"
     
    3939{
    4040
    41   ConsoleCommand(Trigger, setVisibility, AccessLevel::Debug, false).setDefaultValues(0);
     41  SetConsoleCommand(Trigger, setVisibility, false).accessLevel(AccessLevel::User).defaultValues(0);
    4242
    4343  CreateFactory(Trigger);
     
    7474  {
    7575    if(bVisible)
    76       this->setScale(2,2,2);
     76      this->setScale(2);
    7777    else
    78       this->setScale(0,0,0);
     78      this->setScale(0);
    7979  }
    8080
     
    8484      return NULL;
    8585
    86     std::set<Trigger*>::iterator it;
     86    std::set<Trigger*>::const_iterator it;
    8787    it = children_.begin();
    8888
     
    226226    //XMLPortParamLoadOnlyTemplate(Trigger, "mode", setMode, xmlelement, mode, std::string);
    227227
    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);
    229231
    230232    this->init();
  • code/branches/objecthierarchy/src/orxonox/objects/Trigger.h

    r1959 r1961  
    3535#include "OrxonoxPrereqs.h"
    3636
    37 #include "WorldEntity.h"
     37#include "worldentities/PositionableEntity.h"
    3838
    3939#include "../tools/BillboardSet.h"
     
    4848  };
    4949
    50   class _OrxonoxExport Trigger : public WorldEntity
     50  class _OrxonoxExport Trigger : public PositionableEntity
    5151  {
    5252    public:
  • code/branches/objecthierarchy/visual_studio/vc8/core.vcproj

    r1896 r1961  
    173173                        </File>
    174174                        <File
     175                                RelativePath="..\..\src\core\LuaBind.cc"
     176                                >
     177                        </File>
     178                        <File
    175179                                RelativePath="..\..\src\core\OrxonoxClass.cc"
    176180                                >
     
    178182                        <File
    179183                                RelativePath="..\..\src\core\RootGameState.cc"
    180                                 >
    181                         </File>
    182                         <File
    183                                 RelativePath="..\..\src\core\Script.cc"
    184184                                >
    185185                        </File>
     
    405405                        </File>
    406406                        <File
     407                                RelativePath="..\..\src\core\LuaBind.h"
     408                                >
     409                        </File>
     410                        <File
    407411                                RelativePath="..\..\src\core\OrxonoxClass.h"
    408412                                >
     
    410414                        <File
    411415                                RelativePath="..\..\src\core\RootGameState.h"
    412                                 >
    413                         </File>
    414                         <File
    415                                 RelativePath="..\..\src\core\Script.h"
    416416                                >
    417417                        </File>
  • code/branches/objecthierarchy/visual_studio/vc8/orxonox.vcproj

    r1947 r1961  
    200200                                </File>
    201201                                <File
     202                                        RelativePath="..\..\src\orxonox\objects\DistanceTrigger.cc"
     203                                        >
     204                                </File>
     205                                <File
    202206                                        RelativePath="..\..\src\orxonox\objects\Radar.cc"
    203207                                        >
     
    212216                                </File>
    213217                                <File
     218                                        RelativePath="..\..\src\orxonox\objects\Script.cc"
     219                                        >
     220                                </File>
     221                                <File
    214222                                        RelativePath="..\..\src\orxonox\objects\Tickable.cc"
     223                                        >
     224                                </File>
     225                                <File
     226                                        RelativePath="..\..\src\orxonox\objects\Trigger.cc"
    215227                                        >
    216228                                </File>
     
    536548                                </File>
    537549                                <File
     550                                        RelativePath="..\..\src\orxonox\objects\DistanceTrigger.h"
     551                                        >
     552                                </File>
     553                                <File
    538554                                        RelativePath="..\..\src\orxonox\objects\Radar.h"
    539555                                        >
     
    548564                                </File>
    549565                                <File
     566                                        RelativePath="..\..\src\orxonox\objects\Script.h"
     567                                        >
     568                                </File>
     569                                <File
    550570                                        RelativePath="..\..\src\orxonox\objects\Tickable.h"
     571                                        >
     572                                </File>
     573                                <File
     574                                        RelativePath="..\..\src\orxonox\objects\Trigger.h"
    551575                                        >
    552576                                </File>
Note: See TracChangeset for help on using the changeset viewer.