summaryrefslogtreecommitdiffstats
path: root/src/mainmovie.cpp
diff options
context:
space:
mode:
authorProgramerus <alcadeias95@gmail.com>2012-03-22 20:37:53 +0100
committerProgramerus <alcadeias95@gmail.com>2012-03-22 20:37:53 +0100
commit7b506bb7c8ee76a7676e7e58d0b7f6322f10cec7 (patch)
tree9ce1420109f30bcd97d2748971f75743eac684c4 /src/mainmovie.cpp
parentb65b48052c79a66ccccca15d4cec177cc2db87ac (diff)
downloadcolobot-7b506bb7c8ee76a7676e7e58d0b7f6322f10cec7.tar.gz
colobot-7b506bb7c8ee76a7676e7e58d0b7f6322f10cec7.tar.bz2
colobot-7b506bb7c8ee76a7676e7e58d0b7f6322f10cec7.zip
Comments translated from French to English.
Diffstat (limited to 'src/mainmovie.cpp')
-rw-r--r--src/mainmovie.cpp32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/mainmovie.cpp b/src/mainmovie.cpp
index 05c9503..b29bd83 100644
--- a/src/mainmovie.cpp
+++ b/src/mainmovie.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/.// mainmovie.cpp
+// * along with this program. If not, see http://www.gnu.org/licenses/.
+
+// mainmovie.cpp
#define STRICT
#define D3D_OVERLOADS
@@ -39,7 +41,7 @@
-// Constructeur de l'application carte.
+// Constructor of the application card.
CMainMovie::CMainMovie(CInstanceManager* iMan)
{
@@ -56,14 +58,14 @@ CMainMovie::CMainMovie(CInstanceManager* iMan)
Flush();
}
-// Destructeur de l'application robot.
+// Destructor of the application card.
CMainMovie::~CMainMovie()
{
}
-// Stoppe le film en cours.
+// Stops the current movie.
void CMainMovie::Flush()
{
@@ -71,7 +73,7 @@ void CMainMovie::Flush()
}
-// Début d'un film.
+// Start of a film.
BOOL CMainMovie::Start(MainMovieType type, float time)
{
@@ -89,14 +91,14 @@ BOOL CMainMovie::Start(MainMovieType type, float time)
pObj = m_main->SearchHuman();
if ( pObj == 0 )
{
- m_type = MM_NONE; // c'est déjà fini !
+ m_type = MM_NONE; // it's over!
return TRUE;
}
motion = pObj->RetMotion();
if ( motion != 0 )
{
- motion->SetAction(MHS_SATCOM, 0.5f); // lit le SatCom
+ motion->SetAction(MHS_SATCOM, 0.5f); // reads the SatCom
}
m_camera->RetCamera(m_initialEye, m_initialLookat);
@@ -121,18 +123,18 @@ BOOL CMainMovie::Start(MainMovieType type, float time)
motion = pObj->RetMotion();
if ( motion != 0 )
{
- motion->SetAction(-1); // termine lecture du SatCom
+ motion->SetAction(-1); // finishes reading SatCom
}
}
m_camera->SetType(CAMERA_BACK);
- m_type = MM_NONE; // c'est déjà fini !
+ m_type = MM_NONE; // it's already over!
}
return TRUE;
}
-// Stoppe un film en cours.
+// Stop a current movie.
BOOL CMainMovie::Stop()
{
@@ -147,7 +149,7 @@ BOOL CMainMovie::Stop()
motion = pObj->RetMotion();
if ( motion != 0 )
{
- motion->SetAction(-1); // termine lecture du SatCom
+ motion->SetAction(-1); // finishes reading SatCom
}
}
}
@@ -156,7 +158,7 @@ BOOL CMainMovie::Stop()
return TRUE;
}
-// Indique si un film est en cours.
+// Indicates whether a film is in progress.
BOOL CMainMovie::IsExist()
{
@@ -164,7 +166,7 @@ BOOL CMainMovie::IsExist()
}
-// Traite un événement.
+// Processing an event.
BOOL CMainMovie::EventProcess(const Event &event)
{
@@ -230,14 +232,14 @@ BOOL CMainMovie::EventProcess(const Event &event)
}
-// Retourne le type du film en cours.
+// Returns the type of the current movie.
MainMovieType CMainMovie::RetType()
{
return m_type;
}
-// Retourne le type du film stoppé.
+// Returns the type of movie stop.
MainMovieType CMainMovie::RetStopType()
{