Comments translated from French to English.

dev-ui
Programerus 2012-04-10 18:59:24 +03:00
parent cacf81e852
commit d8cebd443d
1 changed files with 13 additions and 11 deletions

View File

@ -12,7 +12,9 @@
// * GNU General Public License for more details. // * GNU General Public License for more details.
// * // *
// * You should have received a copy of the GNU General Public License // * You should have received a copy of the GNU General Public License
// * along with this program. If not, see http://www.gnu.org/licenses/.// taskgungoal.cpp // * along with this program. If not, see http://www.gnu.org/licenses/.
// taskgungoal.cpp
#define STRICT #define STRICT
#define D3D_OVERLOADS #define D3D_OVERLOADS
@ -35,7 +37,7 @@
// Constructeur de l'objet. // Object's constructor.
CTaskGunGoal::CTaskGunGoal(CInstanceManager* iMan, CObject* object) CTaskGunGoal::CTaskGunGoal(CInstanceManager* iMan, CObject* object)
: CTask(iMan, object) : CTask(iMan, object)
@ -43,14 +45,14 @@ CTaskGunGoal::CTaskGunGoal(CInstanceManager* iMan, CObject* object)
CTask::CTask(iMan, object); CTask::CTask(iMan, object);
} }
// Destructeur de l'objet. // Object's destructor.
CTaskGunGoal::~CTaskGunGoal() CTaskGunGoal::~CTaskGunGoal()
{ {
} }
// Gestion d'un événement. // Management of an event.
BOOL CTaskGunGoal::EventProcess(const Event &event) BOOL CTaskGunGoal::EventProcess(const Event &event)
{ {
@ -85,7 +87,7 @@ BOOL CTaskGunGoal::EventProcess(const Event &event)
} }
// Assigne le but à atteindre. // Assigns the goal was achieved.
Error CTaskGunGoal::Start(float dirV, float dirH) Error CTaskGunGoal::Start(float dirV, float dirH)
{ {
@ -94,8 +96,8 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
m_initialDirV = m_object->RetGunGoalV(); m_initialDirV = m_object->RetGunGoalV();
m_object->SetGunGoalV(dirV); m_object->SetGunGoalV(dirV);
m_finalDirV = m_object->RetGunGoalV(); // direction possible m_finalDirV = m_object->RetGunGoalV(); // possible direction
m_object->SetGunGoalV(m_initialDirV); // remet direction initiale m_object->SetGunGoalV(m_initialDirV); // gives initial direction
if ( m_finalDirV == m_initialDirV ) if ( m_finalDirV == m_initialDirV )
{ {
@ -108,8 +110,8 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
m_initialDirH = m_object->RetGunGoalH(); m_initialDirH = m_object->RetGunGoalH();
m_object->SetGunGoalH(dirH); m_object->SetGunGoalH(dirH);
m_finalDirH = m_object->RetGunGoalH(); // direction possible m_finalDirH = m_object->RetGunGoalH(); // possible direction
m_object->SetGunGoalH(m_initialDirH); // remet direction initiale m_object->SetGunGoalH(m_initialDirH); // gives initial direction
if ( m_finalDirH == m_initialDirH ) if ( m_finalDirH == m_initialDirH )
{ {
@ -134,7 +136,7 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
return ERR_OK; return ERR_OK;
} }
// Indique si l'action est terminée. // Indicates whether the action is finished.
Error CTaskGunGoal::IsEnded() Error CTaskGunGoal::IsEnded()
{ {
@ -150,7 +152,7 @@ Error CTaskGunGoal::IsEnded()
return ERR_STOP; return ERR_STOP;
} }
// Termine brutalement l'action en cours. // Suddenly ends the current action.
BOOL CTaskGunGoal::Abort() BOOL CTaskGunGoal::Abort()
{ {