Changeset 9744 for code/branches/invaders
- Timestamp:
- Nov 4, 2013, 3:58:01 PM (11 years ago)
- Location:
- code/branches/invaders
- Files:
-
- 5 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/invaders/data/levels/templates/spaceshipInvader.oxt
r9724 r9744 57 57 </collisionShapes> 58 58 <?lua 59 include("../includes/ weaponSettingsEscort.oxi")59 include("../includes/invaderWeapon.oxi") 60 60 ?> 61 61 </InvaderShip> -
code/branches/invaders/src/modules/invader/CMakeLists.txt
r9709 r9744 4 4 InvaderCenterPoint.cc 5 5 InvaderShip.cc 6 InvaderWeapon.cc 6 7 END_BUILD_UNIT 7 8 ) … … 13 14 orxonox 14 15 overlays 16 weapons 15 17 SOURCE_FILES ${Invader_SRC_FILES} 16 18 ) -
code/branches/invaders/src/modules/invader/InvaderPrereqs.h
r9709 r9744 71 71 class InvaderCenterPoint; 72 72 class InvaderShip; 73 class InvaderWeapon; 73 74 } 74 75 -
code/branches/invaders/src/modules/invader/InvaderShip.cc
r9725 r9744 50 50 51 51 speed = 500; 52 isFireing = false; 52 53 damping = 10; 54 53 55 } 54 56 55 57 void InvaderShip::tick(float dt) 56 58 { 57 // If the bat is controlled (but not over the network). 59 // if (camera == NULL) 60 // camera = this->getCamera(); 61 // if (camera != NULL) 62 // camera->setPosition(Vector3(0, 0, 0) + this->getWorldPosition()); 63 58 64 if (this->hasLocalController()) 59 65 { … … 69 75 ControllableEntity::fire(0); 70 76 77 78 // camera->setOrientation(Vector3::UNIT_X, Degree(0)); 79 80 71 81 SUPER(InvaderShip, tick, dt); 72 82 } … … 74 84 void InvaderShip::moveFrontBack(const Vector2& value) 75 85 { 76 orxout(internal_error) << "move backfront" << value.x << value.y << endl;86 // orxout(internal_error) << "move backfront" << value.x << value.y << endl; 77 87 //velocity.y = value.y * speed * 10; 78 88 lastTimeFront = 0; … … 82 92 void InvaderShip::moveRightLeft(const Vector2& value) 83 93 { 84 orxout(internal_error) << "right left front" << value.x << value.y << endl;94 // orxout(internal_error) << "right left front" << value.x << value.y << endl; 85 95 lastTimeLeft = 0; 86 96 desiredVelocity.x = value.x * speed; -
code/branches/invaders/src/modules/invader/InvaderShip.h
r9725 r9744 38 38 39 39 #include "worldentities/pawns/SpaceShip.h" 40 #include "graphics/Camera.h" 40 41 41 42 namespace orxonox … … 59 60 virtual void rotateRoll(const Vector2& value){}; 60 61 private: 62 Camera* camera; 61 63 bool isFireing; 62 64 float speed, damping; -
code/branches/invaders/src/modules/weapons/weaponmodes/HsW01.h
r9667 r9744 59 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 60 60 61 pr ivate:61 protected: 62 62 /** 63 63 @brief Set the mesh. … … 109 109 { return this->delay_; } 110 110 111 v oid shot();111 virtual void shot(); 112 112 void muzzleflash(); 113 113
Note: See TracChangeset
for help on using the changeset viewer.