@@ -40,15 +40,15 @@ using boost::shared_ptr;
4040/* AI::AI(Player *player)
4141{
4242 aiImplementation=new AICastor(player);
43- this->implementitionID =NUMBI;
43+ this->implementationID =NUMBI;
4444 this->player=player;
4545}*/
4646
47- AI::AI (ImplementitionID implementitionID , Player *player)
47+ AI::AI (ImplementationID implementationID , Player *player)
4848{
4949 aiImplementation=NULL ;
5050
51- switch (implementitionID )
51+ switch (implementationID )
5252 {
5353 case NONE:
5454 aiImplementation=new AINull ();
@@ -65,7 +65,7 @@ AI::AI(ImplementitionID implementitionID, Player *player)
6565 case WARRUSH:
6666 aiImplementation=new AIWarrush (player);
6767 break ;
68- case REACHTOINFINITY :
68+ case REACH_TO_INFINITY :
6969 aiImplementation=new AIEcho::Echo (new AIEcho::ReachToInfinity, player);
7070 break ;
7171 case TOUBIB:
@@ -76,14 +76,14 @@ AI::AI(ImplementitionID implementitionID, Player *player)
7676 break ;
7777 }
7878
79- this ->implementitionID =implementitionID ;
79+ this ->implementationID =implementationID ;
8080 this ->player =player;
8181}
8282
8383AI::AI (GAGCore::InputStream *stream, Player *player, Sint32 versionMinor)
8484{
8585 aiImplementation=NULL ;
86- implementitionID =NONE;
86+ implementationID =NONE;
8787 this ->player =player;
8888 bool goodLoad=load (stream, versionMinor);
8989 assert (goodLoad);
@@ -119,14 +119,14 @@ bool AI::load(GAGCore::InputStream *stream, Sint32 versionMinor)
119119 stream->read (signature, 4 , " signatureStart" );
120120 if (memcmp (signature," AI b" , 4 )!=0 )
121121 {
122- fprintf (stderr, " AI::bad begining signature\n " );
122+ fprintf (stderr, " AI::bad beginning signature\n " );
123123 stream->readLeaveSection ();
124124 return false ;
125125 }
126126
127- implementitionID=(ImplementitionID )stream->readUint32 (" implementitionID" );
127+ implementationID=(ImplementationID )stream->readUint32 (" implementitionID" );
128128
129- switch (implementitionID )
129+ switch (implementationID )
130130 {
131131 case NONE:
132132 aiImplementation=new AINull ();
@@ -141,7 +141,7 @@ bool AI::load(GAGCore::InputStream *stream, Sint32 versionMinor)
141141 aiImplementation=new AIEcho::Echo (new NewNicowar, player);
142142 aiImplementation->load (stream, player, versionMinor);
143143 break ;
144- case REACHTOINFINITY :
144+ case REACH_TO_INFINITY :
145145 aiImplementation=new AIEcho::Echo (new AIEcho::ReachToInfinity, player);
146146 aiImplementation->load (stream, player, versionMinor);
147147 break ;
@@ -152,7 +152,7 @@ bool AI::load(GAGCore::InputStream *stream, Sint32 versionMinor)
152152 aiImplementation=new AIWarrush (stream, player, versionMinor);
153153 break ;
154154 default :
155- fprintf (stderr, " AI id %d does not exist, you probably try to load a map from a more recent version of glob2.\n " , implementitionID );
155+ fprintf (stderr, " AI id %d does not exist, you probably try to load a map from a more recent version of glob2.\n " , implementationID );
156156 assert (false );
157157 break ;
158158 }
@@ -173,7 +173,7 @@ void AI::save(GAGCore::OutputStream *stream)
173173 stream->writeEnterSection (" AI" );
174174 stream->write (" AI b" , 4 , " signatureStart" );
175175
176- stream->writeUint32 (static_cast <Uint32>(implementitionID ), " implementitionID" );
176+ stream->writeUint32 (static_cast <Uint32>(implementationID ), " implementitionID" );
177177
178178 assert (aiImplementation);
179179 aiImplementation->save (stream);
0 commit comments