summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorProgramerus <alcadeias95@gmail.com>2012-04-10 18:59:24 +0300
committerProgramerus <alcadeias95@gmail.com>2012-04-10 18:59:24 +0300
commitd8cebd443dc224d61d4022a70c6869d6c7c40681 (patch)
treef70bc56d77121b615345ff6eaae6e8e189d23e43 /src
parentcacf81e8523003eaf3059405f79d3b9c93375611 (diff)
downloadcolobot-d8cebd443dc224d61d4022a70c6869d6c7c40681.tar.gz
colobot-d8cebd443dc224d61d4022a70c6869d6c7c40681.tar.bz2
colobot-d8cebd443dc224d61d4022a70c6869d6c7c40681.zip
Comments translated from French to English.
Diffstat (limited to 'src')
-rw-r--r--src/taskgungoal.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/taskgungoal.cpp b/src/taskgungoal.cpp
index e222d25..8ac9d80 100644
--- a/src/taskgungoal.cpp
+++ b/src/taskgungoal.cpp
@@ -12,7 +12,9 @@
// * GNU General Public License for more details.
// *
// * 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 D3D_OVERLOADS
@@ -35,7 +37,7 @@
-// Constructeur de l'objet.
+// Object's constructor.
CTaskGunGoal::CTaskGunGoal(CInstanceManager* iMan, CObject* object)
: CTask(iMan, object)
@@ -43,14 +45,14 @@ CTaskGunGoal::CTaskGunGoal(CInstanceManager* iMan, CObject* object)
CTask::CTask(iMan, object);
}
-// Destructeur de l'objet.
+// Object's destructor.
CTaskGunGoal::~CTaskGunGoal()
{
}
-// Gestion d'un événement.
+// Management of an 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)
{
@@ -94,8 +96,8 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
m_initialDirV = m_object->RetGunGoalV();
m_object->SetGunGoalV(dirV);
- m_finalDirV = m_object->RetGunGoalV(); // direction possible
- m_object->SetGunGoalV(m_initialDirV); // remet direction initiale
+ m_finalDirV = m_object->RetGunGoalV(); // possible direction
+ m_object->SetGunGoalV(m_initialDirV); // gives initial direction
if ( m_finalDirV == m_initialDirV )
{
@@ -108,8 +110,8 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
m_initialDirH = m_object->RetGunGoalH();
m_object->SetGunGoalH(dirH);
- m_finalDirH = m_object->RetGunGoalH(); // direction possible
- m_object->SetGunGoalH(m_initialDirH); // remet direction initiale
+ m_finalDirH = m_object->RetGunGoalH(); // possible direction
+ m_object->SetGunGoalH(m_initialDirH); // gives initial direction
if ( m_finalDirH == m_initialDirH )
{
@@ -134,7 +136,7 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
return ERR_OK;
}
-// Indique si l'action est terminée.
+// Indicates whether the action is finished.
Error CTaskGunGoal::IsEnded()
{
@@ -150,7 +152,7 @@ Error CTaskGunGoal::IsEnded()
return ERR_STOP;
}
-// Termine brutalement l'action en cours.
+// Suddenly ends the current action.
BOOL CTaskGunGoal::Abort()
{