Changeset 9709 for code/branches/invaders
- Timestamp:
- Oct 21, 2013, 3:53:13 PM (11 years ago)
- Location:
- code/branches/invaders
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/data/levels/Invaders.oxw
r9701 r9709 30 30 31 31 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 32 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipinvader /> 32 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader /> 33 34 <InvaderCenterPoint name=invadercenter /> 33 35 34 36 </Scene> -
code/branches/invaders/data/levels/templates/spaceshipInvader.oxt
r9701 r9709 1 1 <Template name=spaceshipinvader> 2 < SpaceShip2 <InvaderShip 3 3 hudtemplate = spaceshiphud 4 4 camerapositiontemplate = spaceshipescortcameras … … 59 59 include("../includes/weaponSettingsEscort.oxi") 60 60 ?> 61 </ SpaceShip>61 </InvaderShip> 62 62 </Template> 63 63 64 64 <Template name=spaceshipescortcameras defaults=0> 65 < SpaceShip>65 <InvaderShip> 66 66 <camerapositions> 67 <CameraPosition position="0,15, 60" drag=true mouselook=true />67 <!-- <CameraPosition position="0,15, 60" drag=true mouselook=true /> 68 68 <CameraPosition position="0,20, 90" drag=true mouselook=true /> 69 <CameraPosition position="0,30,120" drag=true mouselook=true /> 69 <CameraPosition position="0,30,120" drag=true mouselook=true /> --> 70 70 <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=true mouselook=true /> 71 71 </camerapositions> 72 </ SpaceShip>72 </InvaderShip> 73 73 </Template> 74 74 -
code/branches/invaders/src/modules/invader/CMakeLists.txt
r9702 r9709 2 2 BUILD_UNIT InvaderBuildUnit.cc 3 3 Invader.cc 4 InvaderCenterPoint.cc 5 InvaderShip.cc 4 6 END_BUILD_UNIT 5 7 ) -
code/branches/invaders/src/modules/invader/Invader.cc
r9702 r9709 42 42 #include "chat/ChatManager.h" 43 43 44 #include "InvaderShip.h" 45 // ! HACK 46 #include "infos/PlayerInfo.h" 47 48 #include "InvaderCenterPoint.h" 49 44 50 namespace orxonox 45 51 { … … 50 56 RegisterObject(Invader); 51 57 58 this->center_ = 0; 59 //this->context = context; 52 60 } 53 61 … … 56 64 } 57 65 66 // inject custom player controller 67 /** void Invader::spawnPlayer(PlayerInfo* player) 68 { 69 assert(player); 70 71 //player->startControl(new InvaderShip(this->center_->getContext() ) ); 72 }*/ 73 58 74 void Invader::start() 59 75 { … … 61 77 this->bForceSpawn_ = true; 62 78 79 if (this->center_ == NULL) // abandon mission! 80 { 81 orxout(internal_error) << "Invader: No Centerpoint specified." << endl; 82 GSLevel::startMainMenu(); 83 return; 84 } 63 85 // Call start for the parent class. 64 86 Deathmatch::start(); -
code/branches/invaders/src/modules/invader/Invader.h
r9702 r9709 40 40 #include "gametypes/Deathmatch.h" 41 41 42 #include "InvaderCenterPoint.h" 43 42 44 namespace orxonox 43 45 { … … 51 53 virtual void start(); //!< Starts the Invader minigame. 52 54 virtual void end(); ///!< Ends the Invader minigame. 55 56 //virtual void spawnPlayer(PlayerInfo* player); //!< Spawns the input player. 57 58 void setCenterpoint(InvaderCenterPoint* center) 59 { this->center_ = center; } 60 private: 61 WeakPtr<InvaderCenterPoint> center_; 62 //Context* context; 53 63 }; 54 64 } -
code/branches/invaders/src/modules/invader/InvaderPrereqs.h
r9702 r9709 69 69 { 70 70 class Invader; 71 class InvaderCenterPoint; 72 class InvaderShip; 71 73 } 72 74
Note: See TracChangeset
for help on using the changeset viewer.