Changeset 5671 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Nov 21, 2005, 3:50:41 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/skybox.cc
r5652 r5671 55 55 static_cast<WorldEntity*>(this)->loadParams(root); 56 56 57 LoadParam NEW(root, "Materialset", this, SkyBox, setTexture)57 LoadParam(root, "Materialset", this, SkyBox, setTexture) 58 58 .describe("Sets the material on the SkyBox. The string must be the path relative to the data-dir, and without a trailing .jpg"); 59 59 60 LoadParam NEW(root, "Size", this, SkyBox, setSize)60 LoadParam(root, "Size", this, SkyBox, setSize) 61 61 .describe("Sets the Size of the SkyBox (normally this should be 90% of the maximal viewing Distance)."); 62 62 } -
trunk/src/world_entities/terrain.cc
r5654 r5671 104 104 static_cast<WorldEntity*>(this)->loadParams(root); 105 105 106 LoadParam NEW(root, "vegetation", this, Terrain, loadVegetation)106 LoadParam(root, "vegetation", this, Terrain, loadVegetation) 107 107 .describe("the fileName of the vegetation, that should be loaded onto this terrain. (must be relative to the data-dir)") ; 108 108 } -
trunk/src/world_entities/weapons/aim.cc
r5652 r5671 70 70 static_cast<PNode*>(this)->loadParams(root); 71 71 72 LoadParam NEW(root, "texture", this, Aim, setTexture)72 LoadParam(root, "texture", this, Aim, setTexture) 73 73 .describe("the texture-file to load onto the Aim"); 74 74 75 LoadParam NEW(root, "size", this, Aim, setSize)75 LoadParam(root, "size", this, Aim, setSize) 76 76 .describe("the size of the Aim in Pixels"); 77 77 78 LoadParam NEW(root, "rotation-speed", this, Aim, setRotationSpeed)78 LoadParam(root, "rotation-speed", this, Aim, setRotationSpeed) 79 79 .describe("the Speed with which the Aim should rotate"); 80 80 } -
trunk/src/world_entities/weapons/crosshair.cc
r5652 r5671 84 84 static_cast<EventListener*>(this)->loadParams(root); 85 85 86 LoadParam NEW(root, "texture", this, Crosshair, setTexture)86 LoadParam(root, "texture", this, Crosshair, setTexture) 87 87 .describe("the texture-file to load onto the Crosshair"); 88 88 89 LoadParam NEW(root, "size", this, Crosshair, setSize)89 LoadParam(root, "size", this, Crosshair, setSize) 90 90 .describe("the size of the Crosshair in Pixels"); 91 91 92 LoadParam NEW(root, "rotation-speed", this, Crosshair, setRotationSpeed)92 LoadParam(root, "rotation-speed", this, Crosshair, setRotationSpeed) 93 93 .describe("the Speed with which the Crosshair should rotate"); 94 94 } -
trunk/src/world_entities/weapons/weapon.cc
r5652 r5671 109 109 static_cast<WorldEntity*>(this)->loadParams(root); 110 110 111 LoadParam NEW(root, "projectile", this, Weapon, setProjectileType)111 LoadParam(root, "projectile", this, Weapon, setProjectileType) 112 112 .describe("Sets the name of the Projectile to load onto the Entity"); 113 113 114 LoadParam NEW(root, "emission-point", this, Weapon, setEmissionPoint)114 LoadParam(root, "emission-point", this, Weapon, setEmissionPoint) 115 115 .describe("Sets the Point of emission of this weapon"); 116 116 117 LoadParam NEW(root, "state-duration", this, Weapon, setStateDuration)117 LoadParam(root, "state-duration", this, Weapon, setStateDuration) 118 118 .describe("Sets the duration of a given state (1: state-Name; 2: duration in seconds)"); 119 119 120 LoadParam NEW(root, "action-sound", this, Weapon, setActionSound)120 LoadParam(root, "action-sound", this, Weapon, setActionSound) 121 121 .describe("Sets a given sound to an action (1: action-Name; 2: name of the sound (relative to the Data-Path))"); 122 122 } -
trunk/src/world_entities/weapons/weapon_manager.cc
r5654 r5671 119 119 static_cast<BaseObject*>(this)->loadParams(root); 120 120 121 LoadParam NEW(root, "slot-count", this, WeaponManager, setSlotCount)121 LoadParam(root, "slot-count", this, WeaponManager, setSlotCount) 122 122 .describe("how many slots(cannons) the WeaponManager can handle"); 123 123 -
trunk/src/world_entities/world_entity.cc
r5652 r5671 76 76 77 77 // Model Loading 78 LoadParam NEW(root, "model", this, WorldEntity, loadModel)78 LoadParam(root, "model", this, WorldEntity, loadModel) 79 79 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") 80 80 ->defaultValues(2, NULL, 1.0f);
Note: See TracChangeset
for help on using the changeset viewer.