Last change
on this file since 10041 was
10041,
checked in by tfahrni, 17 years ago
|
Tried to make some progress with the AI..
|
File size:
894 bytes
|
Rev | Line | |
---|
[10029] | 1 | |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | orxonox - the future of 3D-vertical-scrollers |
---|
| 5 | |
---|
| 6 | Copyright (C) 2004 orx |
---|
| 7 | |
---|
| 8 | This program is free software; you can redistribute it and/or modify |
---|
| 9 | it under the terms of the GNU General Public License as published by |
---|
| 10 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 11 | any later version. |
---|
| 12 | |
---|
| 13 | ### File Specific: |
---|
| 14 | main-programmer: Patrick Boenzli |
---|
| 15 | co-programmer: |
---|
| 16 | */ |
---|
[10041] | 17 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_AI |
---|
[10029] | 18 | |
---|
| 19 | #include "ai_team.h" |
---|
| 20 | |
---|
| 21 | AITeam::AITeam() |
---|
| 22 | {} |
---|
| 23 | |
---|
| 24 | AITeam::~AITeam() |
---|
| 25 | {} |
---|
| 26 | |
---|
| 27 | void AITeam::process() |
---|
[10041] | 28 | { |
---|
| 29 | int teamSize=teamMembers.size(); |
---|
| 30 | for(int i=0; i < teamSize; i++ ) |
---|
| 31 | { |
---|
| 32 | //std::cout << "Processing TeamMember " << i << "...\n"; |
---|
| 33 | teamMembers.at(i)->process(); |
---|
| 34 | } |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | void AITeam::addMember(AITeamMember* newMember) |
---|
| 39 | { |
---|
| 40 | teamMembers.push_back(newMember); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | AITeamMember* AITeam::getTeamMember(int teamMemberID) |
---|
| 45 | { |
---|
| 46 | return teamMembers.at(teamMemberID); |
---|
| 47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.