Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2008, 5:38:03 AM (17 years ago)
Author:
landauf
Message:
  • added set and tset functions to the ConfigValueContainer to (temporary) set a config-value to a new value
  • ConfigValueContainer uses now the functions of MultiTypeMath to convert and assign values
  • added some errorhandling to the CommandExecutor in case there are not enough parameters when executing the command
  • added updateConfigValues function to Identifier
  • added addTime and removeTime functions to the Timer
  • some changes in Executor to allow adding description and default-values when using the ConsoleCommand macro
Location:
code/branches/core2/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/objects/Ambient.cc

    r947 r957  
    4747namespace orxonox
    4848{
    49     ConsoleCommand(Ambient, setAmbientLightTest, AccessLevel::Offline, false);
     49    ConsoleCommand(Ambient, setAmbientLightTest, AccessLevel::Offline, false).setDefaultValues(ColourValue(1, 1, 1, 1));
    5050
    5151    CreateFactory(Ambient);
  • code/branches/core2/src/orxonox/objects/Projectile.cc

    r790 r957  
    7171        SetConfigValue(lifetime_, 10.0).description("The time in seconds a projectile stays alive");
    7272        SetConfigValue(speed_, 2000.0).description("The speed of a projectile in units per second");
     73
     74        this->setVelocity(Vector3(1, 0, 0) * this->speed_);
    7375    }
    7476
Note: See TracChangeset for help on using the changeset viewer.