Changeset 9160 in orxonox.OLD for branches/presentation/src/world_entities/weapons/aiming_system.cc
- Timestamp:
- Jul 4, 2006, 5:53:06 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/weapons/aiming_system.cc
r9157 r9160 19 19 20 20 #include "util/loading/load_param.h" 21 #include "graphics_engine.h" 21 22 22 #include "state.h" 23 #include "material.h"24 #include "t_animation.h"25 #include "text.h"26 23 27 #include "world_entity.h" 24 #include <vector> 25 28 26 29 27 using namespace std; … … 76 74 77 75 76 /** 77 * get back the nearest target 78 */ 79 inline WorldEntity* AimingSystem::getNearestTarget() 80 { 81 if( this->selectionList.size() == 0) 82 return NULL; 83 else if( this->selectionList.size() == 1) 84 return this->selectionList.back(); 85 86 // WorldEntity* nearestEntity = this->; 87 88 for( int i = 0; i < this->selectionList.size(); i++) 89 { 90 91 } 92 } 93 94 95 /** 96 * called when an object is "selected" 97 * @param damage damage to be dealt 98 * @param killer the entity 99 */ 100 void AimingSystem::hit(float damage, WorldEntity* killer) 101 { 102 this->selectionList.push_back(killer); 103 } 104 105 78 106 79 107 /**
Note: See TracChangeset
for help on using the changeset viewer.