1) Renamed scene to stk_scene (since scene is a namespace in irrlicht).
Note that with irrlicht the scene objects is most likely going to be replaced anyway. 2) Removed more snprintf. 3) Removed unused modes from VS project file, added new mode for irrlicht. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0b8f74e70b
commit
067d3daf79
@ -56,7 +56,7 @@ void Explosion::init(const Vec3& coord)
|
|||||||
c.hpr[0]=0; c.hpr[1]=0; c.hpr[2]=0;
|
c.hpr[0]=0; c.hpr[1]=0; c.hpr[2]=0;
|
||||||
setTransform(&c);
|
setTransform(&c);
|
||||||
m_step = -1;
|
m_step = -1;
|
||||||
scene->add(this);
|
stk_scene->add(this);
|
||||||
m_has_ended = false;
|
m_has_ended = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ void Explosion::update(float dt)
|
|||||||
if(m_explode_sound->getStatus() != SFXManager::SFX_PLAYING)
|
if(m_explode_sound->getStatus() != SFXManager::SFX_PLAYING)
|
||||||
{
|
{
|
||||||
//fprintf(stderr, "Sound finished. Removing.\n");
|
//fprintf(stderr, "Sound finished. Removing.\n");
|
||||||
scene->remove((ssgTransform*)this);
|
stk_scene->remove((ssgTransform*)this);
|
||||||
projectile_manager->FinishedExplosion();
|
projectile_manager->FinishedExplosion();
|
||||||
m_has_ended = true;
|
m_has_ended = true;
|
||||||
return;
|
return;
|
||||||
|
@ -69,7 +69,7 @@ ParticleSystem::ParticleSystem ( int num, float create_rate, int ttf, float sz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_num_active = 0 ;
|
m_num_active = 0 ;
|
||||||
scene->add(this);
|
stk_scene->add(this);
|
||||||
} // ParticleSystem
|
} // ParticleSystem
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
#include "scene.hpp"
|
#include "scene.hpp"
|
||||||
|
|
||||||
Scene *scene = 0;
|
Scene *stk_scene = 0;
|
||||||
|
|
||||||
Scene::Scene() : m_scenegraph(new ssgRoot)
|
Scene::Scene() : m_scenegraph(new ssgRoot)
|
||||||
{
|
{
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#ifndef HEADER_SCENE_H
|
#ifndef HEADER_SCENE_HPP
|
||||||
#define HEADER_SCENE_H
|
#define HEADER_SCENE_HPP
|
||||||
|
|
||||||
//FIXME: make the camera a pointer to vector so it can be forward declared.
|
//FIXME: make the camera a pointer to vector so it can be forward declared.
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -48,6 +48,6 @@ public:
|
|||||||
Camera *createCamera(int playerId, const Kart* kart);
|
Camera *createCamera(int playerId, const Kart* kart);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Scene *scene;
|
extern Scene *stk_scene;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -55,8 +55,8 @@ void SkidMarks::reset()
|
|||||||
{
|
{
|
||||||
for(unsigned int i=0; i<m_left.size(); i++)
|
for(unsigned int i=0; i<m_left.size(); i++)
|
||||||
{
|
{
|
||||||
scene->remove(m_left[i]);
|
stk_scene->remove(m_left[i]);
|
||||||
scene->remove(m_right[i]);
|
stk_scene->remove(m_right[i]);
|
||||||
}
|
}
|
||||||
m_left.clear();
|
m_left.clear();
|
||||||
m_right.clear();
|
m_right.clear();
|
||||||
@ -152,7 +152,7 @@ void SkidMarks::update(float dt)
|
|||||||
SkidMarkQuads *smq_left = new SkidMarkQuads(raycast_left.m_contactPointWS,
|
SkidMarkQuads *smq_left = new SkidMarkQuads(raycast_left.m_contactPointWS,
|
||||||
raycast_left.m_contactPointWS + delta,
|
raycast_left.m_contactPointWS + delta,
|
||||||
m_skid_state, m_avoid_z_fighting);
|
m_skid_state, m_avoid_z_fighting);
|
||||||
scene->add(smq_left);
|
stk_scene->add(smq_left);
|
||||||
|
|
||||||
m_avoid_z_fighting += 0.001f;
|
m_avoid_z_fighting += 0.001f;
|
||||||
if(m_avoid_z_fighting>0.01f) m_avoid_z_fighting = 0.0f;
|
if(m_avoid_z_fighting>0.01f) m_avoid_z_fighting = 0.0f;
|
||||||
@ -161,7 +161,7 @@ void SkidMarks::update(float dt)
|
|||||||
raycast_right.m_contactPointWS,
|
raycast_right.m_contactPointWS,
|
||||||
m_skid_state,
|
m_skid_state,
|
||||||
m_avoid_z_fighting);
|
m_avoid_z_fighting);
|
||||||
scene->add(smq_right);
|
stk_scene->add(smq_right);
|
||||||
m_current++;
|
m_current++;
|
||||||
if(m_current>=stk_config->m_max_skidmarks)
|
if(m_current>=stk_config->m_max_skidmarks)
|
||||||
m_current = 0;
|
m_current = 0;
|
||||||
@ -172,8 +172,8 @@ void SkidMarks::update(float dt)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
scene->remove(m_left [m_current]);
|
stk_scene->remove(m_left [m_current]);
|
||||||
scene->remove(m_right[m_current]);
|
stk_scene->remove(m_right[m_current]);
|
||||||
m_left [m_current] = smq_left;
|
m_left [m_current] = smq_left;
|
||||||
m_right[m_current] = smq_right;
|
m_right[m_current] = smq_right;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ GrandPrixEnd::GrandPrixEnd()
|
|||||||
|
|
||||||
//FIXME: this is taken from RaceMode::exit_race,
|
//FIXME: this is taken from RaceMode::exit_race,
|
||||||
//this should be organized better.
|
//this should be organized better.
|
||||||
scene->clear();
|
stk_scene->clear();
|
||||||
RaceManager::setWorld(NULL);
|
RaceManager::setWorld(NULL);
|
||||||
race_manager->m_active_race = false;
|
race_manager->m_active_race = false;
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
#include "gui/race_options.hpp"
|
#include "gui/race_options.hpp"
|
||||||
|
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
#include "race_manager.hpp"
|
#include "race_manager.hpp"
|
||||||
#include "user_config.hpp"
|
#include "user_config.hpp"
|
||||||
#include "material_manager.hpp"
|
#include "material_manager.hpp"
|
||||||
@ -24,10 +26,6 @@
|
|||||||
#include "gui/widget_manager.hpp"
|
#include "gui/widget_manager.hpp"
|
||||||
#include "utils/translation.hpp"
|
#include "utils/translation.hpp"
|
||||||
|
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum WidgetTokens
|
enum WidgetTokens
|
||||||
{
|
{
|
||||||
WTOK_TITLE,
|
WTOK_TITLE,
|
||||||
@ -102,9 +100,9 @@ RaceOptions::RaceOptions()
|
|||||||
widget_manager->setWgtTextSize(WTOK_KARTS_TITLE, WGT_FNT_LRG);
|
widget_manager->setWgtTextSize(WTOK_KARTS_TITLE, WGT_FNT_LRG);
|
||||||
widget_manager->addTextButtonWgt( WTOK_KARTS_DOWN, 3, 7, " < " );
|
widget_manager->addTextButtonWgt( WTOK_KARTS_DOWN, 3, 7, " < " );
|
||||||
|
|
||||||
char string_num_karts[MAX_MESSAGE_LENGTH];
|
std::ostringstream string_num_karts;
|
||||||
snprintf(string_num_karts, MAX_MESSAGE_LENGTH, "%d", m_num_karts);
|
string_num_karts << m_num_karts;
|
||||||
widget_manager->addTextWgt( WTOK_KARTS, ITEM_WIDTH, 7, string_num_karts );
|
widget_manager->addTextWgt( WTOK_KARTS, ITEM_WIDTH, 7, string_num_karts.str() );
|
||||||
widget_manager->setWgtBorderPercentage( WTOK_KARTS, 10 );
|
widget_manager->setWgtBorderPercentage( WTOK_KARTS, 10 );
|
||||||
widget_manager->showWgtBorder( WTOK_KARTS );
|
widget_manager->showWgtBorder( WTOK_KARTS );
|
||||||
widget_manager->hideWgtRect( WTOK_KARTS );
|
widget_manager->hideWgtRect( WTOK_KARTS );
|
||||||
@ -124,9 +122,9 @@ RaceOptions::RaceOptions()
|
|||||||
widget_manager->setWgtTextSize(WTOK_LAPS_TITLE, WGT_FNT_LRG);
|
widget_manager->setWgtTextSize(WTOK_LAPS_TITLE, WGT_FNT_LRG);
|
||||||
widget_manager->addTextButtonWgt( WTOK_LAPS_DOWN, 3, 7, " < " );
|
widget_manager->addTextButtonWgt( WTOK_LAPS_DOWN, 3, 7, " < " );
|
||||||
|
|
||||||
char string_num_laps[MAX_MESSAGE_LENGTH];
|
std::ostringstream string_num_laps;
|
||||||
snprintf(string_num_laps, MAX_MESSAGE_LENGTH, "%d", m_num_laps);
|
string_num_laps << m_num_laps;
|
||||||
widget_manager->addTextWgt( WTOK_LAPS, ITEM_WIDTH, 7, string_num_laps );
|
widget_manager->addTextWgt( WTOK_LAPS, ITEM_WIDTH, 7, string_num_laps.str() );
|
||||||
widget_manager->setWgtBorderPercentage( WTOK_LAPS, 10 );
|
widget_manager->setWgtBorderPercentage( WTOK_LAPS, 10 );
|
||||||
widget_manager->showWgtBorder( WTOK_LAPS );
|
widget_manager->showWgtBorder( WTOK_LAPS );
|
||||||
widget_manager->hideWgtRect( WTOK_LAPS );
|
widget_manager->hideWgtRect( WTOK_LAPS );
|
||||||
@ -191,7 +189,7 @@ void RaceOptions::select()
|
|||||||
{
|
{
|
||||||
m_difficulty = RaceManager::RD_MEDIUM;
|
m_difficulty = RaceManager::RD_MEDIUM;
|
||||||
}
|
}
|
||||||
widget_manager->setWgtText( WTOK_DIFFICULTY, getDifficultyString(m_difficulty) );
|
widget_manager->setWgtText(WTOK_DIFFICULTY, getDifficultyString(m_difficulty) );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WTOK_DIFFICULTY_DOWN:
|
case WTOK_DIFFICULTY_DOWN:
|
||||||
@ -207,20 +205,19 @@ void RaceOptions::select()
|
|||||||
{
|
{
|
||||||
m_difficulty = RaceManager::RD_HARD;
|
m_difficulty = RaceManager::RD_HARD;
|
||||||
}
|
}
|
||||||
widget_manager->setWgtText( WTOK_DIFFICULTY,
|
widget_manager->setWgtText(WTOK_DIFFICULTY,
|
||||||
getDifficultyString(m_difficulty) );
|
getDifficultyString(m_difficulty) );
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WTOK_KARTS_UP:
|
case WTOK_KARTS_UP:
|
||||||
{
|
{
|
||||||
m_num_karts = m_num_karts==stk_config->m_max_karts
|
m_num_karts = m_num_karts==stk_config->m_max_karts
|
||||||
? m_min_karts : m_num_karts + 1;
|
? m_min_karts : m_num_karts + 1;
|
||||||
|
|
||||||
char label[ MAX_MESSAGE_LENGTH ];
|
std::ostringstream label;
|
||||||
snprintf( label, MAX_MESSAGE_LENGTH, "%d", m_num_karts );
|
label << m_num_karts;
|
||||||
|
widget_manager->setWgtText(WTOK_KARTS, label.str() );
|
||||||
widget_manager->setWgtText( WTOK_KARTS, label );
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -228,10 +225,9 @@ void RaceOptions::select()
|
|||||||
{
|
{
|
||||||
m_num_karts = m_num_karts==m_min_karts
|
m_num_karts = m_num_karts==m_min_karts
|
||||||
? stk_config->m_max_karts : m_num_karts-1;
|
? stk_config->m_max_karts : m_num_karts-1;
|
||||||
char label[ MAX_MESSAGE_LENGTH ];
|
std::ostringstream label;
|
||||||
snprintf( label, MAX_MESSAGE_LENGTH, "%d", m_num_karts );
|
label << m_num_karts;
|
||||||
|
widget_manager->setWgtText(WTOK_KARTS, label.str() );
|
||||||
widget_manager->setWgtText( WTOK_KARTS, label );
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -240,10 +236,9 @@ void RaceOptions::select()
|
|||||||
m_num_laps++;
|
m_num_laps++;
|
||||||
if(m_num_laps>10) m_num_laps=1;
|
if(m_num_laps>10) m_num_laps=1;
|
||||||
|
|
||||||
char label[ MAX_MESSAGE_LENGTH ];
|
std::ostringstream label;
|
||||||
snprintf( label, MAX_MESSAGE_LENGTH, "%d", m_num_laps );
|
label << m_num_laps;
|
||||||
|
widget_manager->setWgtText(WTOK_LAPS, label.str());
|
||||||
widget_manager->setWgtText( WTOK_LAPS, label);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -252,10 +247,9 @@ void RaceOptions::select()
|
|||||||
m_num_laps--;
|
m_num_laps--;
|
||||||
if(m_num_laps<1) m_num_laps=10;
|
if(m_num_laps<1) m_num_laps=10;
|
||||||
|
|
||||||
char label[ MAX_MESSAGE_LENGTH ];
|
std::ostringstream label;
|
||||||
snprintf( label, MAX_MESSAGE_LENGTH, "%d", m_num_laps );
|
label << m_num_laps;
|
||||||
|
widget_manager->setWgtText(WTOK_LAPS, label.str());
|
||||||
widget_manager->setWgtText( WTOK_LAPS, label);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -20,9 +20,7 @@
|
|||||||
#include "highscore_manager.hpp"
|
#include "highscore_manager.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
#include <sstream>
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "race_manager.hpp"
|
#include "race_manager.hpp"
|
||||||
#include "file_manager.hpp"
|
#include "file_manager.hpp"
|
||||||
@ -98,9 +96,7 @@ void HighscoreManager::Load()
|
|||||||
const lisp::Lisp* const node = root->getLisp("highscores");
|
const lisp::Lisp* const node = root->getLisp("highscores");
|
||||||
if(!node)
|
if(!node)
|
||||||
{
|
{
|
||||||
char msg[MAX_ERROR_MESSAGE_LENGTH];
|
throw std::runtime_error("No 'highscore' node found.");
|
||||||
snprintf(msg, sizeof(msg), "No 'highscore' node found.");
|
|
||||||
throw std::runtime_error(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// check file version
|
// check file version
|
||||||
@ -121,23 +117,21 @@ void HighscoreManager::Load()
|
|||||||
int n;
|
int n;
|
||||||
if (!node->get("number-entries",n))
|
if (!node->get("number-entries",n))
|
||||||
{
|
{
|
||||||
char msg[MAX_ERROR_MESSAGE_LENGTH];
|
throw std::runtime_error("No 'number-entries' node found.");
|
||||||
snprintf(msg, sizeof(msg), "No 'number-entries' node found.");
|
|
||||||
throw std::runtime_error(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// read all entries one by one and store them in 'm_allScores'
|
// read all entries one by one and store them in 'm_allScores'
|
||||||
for(int i=0; i<n; i++)
|
for(int i=0; i<n; i++)
|
||||||
{
|
{
|
||||||
char record_name[255];
|
std::ostringstream record_name;
|
||||||
snprintf(record_name, sizeof(record_name), "record-%d", i);
|
record_name << "record-" << i;
|
||||||
const lisp::Lisp* const node_record=node->getLisp(record_name);
|
const lisp::Lisp* const node_record=node->getLisp(record_name.str());
|
||||||
if(!node_record)
|
if(!node_record)
|
||||||
{
|
{
|
||||||
char msg[MAX_ERROR_MESSAGE_LENGTH];
|
std::ostringstream msg;
|
||||||
snprintf(msg, sizeof(msg),"Can't find record '%d' in '%s'",
|
msg << "Can't find record '" << i << "' in '"
|
||||||
i,m_filename.c_str());
|
<< m_filename << "'";
|
||||||
throw std::runtime_error(msg);
|
throw std::runtime_error(msg.str());
|
||||||
}
|
}
|
||||||
HighscoreEntry *highscores = new HighscoreEntry(node_record);
|
HighscoreEntry *highscores = new HighscoreEntry(node_record);
|
||||||
m_allScores.push_back(highscores);
|
m_allScores.push_back(highscores);
|
||||||
@ -174,12 +168,12 @@ void HighscoreManager::Save()
|
|||||||
for(type_all_scores::iterator i = m_allScores.begin();
|
for(type_all_scores::iterator i = m_allScores.begin();
|
||||||
i != m_allScores.end(); i++)
|
i != m_allScores.end(); i++)
|
||||||
{
|
{
|
||||||
char record_name[255];
|
std::ostringstream record_name;
|
||||||
snprintf(record_name, sizeof(record_name),"record-%d\t",record_number);
|
record_name << "record-" << record_number << "\t";
|
||||||
record_number++;
|
record_number++;
|
||||||
writer.beginList(record_name);
|
writer.beginList(record_name.str());
|
||||||
(*i)->Write(&writer);
|
(*i)->Write(&writer);
|
||||||
writer.endList(record_name);
|
writer.endList(record_name.str());
|
||||||
} // next score
|
} // next score
|
||||||
writer.endList("highscores");
|
writer.endList("highscores");
|
||||||
m_can_write=true;
|
m_can_write=true;
|
||||||
|
@ -17,13 +17,12 @@
|
|||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#include <stdexcept>
|
|
||||||
#include "highscores.hpp"
|
#include "highscores.hpp"
|
||||||
#include "race_manager.hpp"
|
|
||||||
|
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
#include <stdexcept>
|
||||||
# define snprintf _snprintf
|
#include <sstream>
|
||||||
#endif
|
|
||||||
|
#include "race_manager.hpp"
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
HighscoreEntry::HighscoreEntry(const HighscoreEntry::HighscoreType highscore_type,
|
HighscoreEntry::HighscoreEntry(const HighscoreEntry::HighscoreType highscore_type,
|
||||||
@ -74,13 +73,13 @@ void HighscoreEntry::Read(const lisp::Lisp* const node)
|
|||||||
|
|
||||||
for(int i=0; i<HIGHSCORE_LEN; i++)
|
for(int i=0; i<HIGHSCORE_LEN; i++)
|
||||||
{
|
{
|
||||||
char s[128];
|
std::ostringstream s;
|
||||||
snprintf(s, sizeof(s), "time-%d", i);
|
s << "time-" << i;
|
||||||
node->get(s,m_time[i] );
|
node->get(s.str(),m_time[i] );
|
||||||
snprintf(s, sizeof(s), "name-%d", i);
|
s << "name-" << i;
|
||||||
node->get(s,m_name[i] );
|
node->get(s.str(),m_name[i] );
|
||||||
snprintf(s, sizeof(s), "kartname-%d", i);
|
s << "kartname-" << i;
|
||||||
node->get(s, m_kart_name[i] );
|
node->get(s.str(), m_kart_name[i] );
|
||||||
}
|
}
|
||||||
} // Read
|
} // Read
|
||||||
|
|
||||||
@ -90,17 +89,17 @@ void HighscoreEntry::Write(lisp::Writer *writer)
|
|||||||
writer->write("track-name\t", m_track );
|
writer->write("track-name\t", m_track );
|
||||||
writer->write("number-karts\t", m_number_of_karts );
|
writer->write("number-karts\t", m_number_of_karts );
|
||||||
writer->write("difficulty\t\t", m_difficulty );
|
writer->write("difficulty\t\t", m_difficulty );
|
||||||
writer->write("hscore-type\t\t", m_highscore_type );
|
writer->write("hscore-type\t\t", m_highscore_type );
|
||||||
writer->write("number-of-laps\t", m_number_of_laps );
|
writer->write("number-of-laps\t", m_number_of_laps );
|
||||||
for(int j=0; j<HIGHSCORE_LEN; j++)
|
for(int j=0; j<HIGHSCORE_LEN; j++)
|
||||||
{
|
{
|
||||||
char s[128];
|
std::ostringstream s;
|
||||||
snprintf(s, sizeof(s), "time-%d\t\t", j);
|
s << "time-" << j << "\t\t";
|
||||||
writer->write(s, m_time[j] );
|
writer->write(s.str(), m_time[j] );
|
||||||
snprintf(s, sizeof(s), "name-%d\t\t", j);
|
s << "name-" << j << "\t\t";
|
||||||
writer->write(s, m_name[j] );
|
writer->write(s.str(), m_name[j] );
|
||||||
snprintf(s, sizeof(s), "kartname-%d\t\t", j);
|
s << "kartname-" << j << "\t\t";
|
||||||
writer->write(s, m_kart_name[j] );
|
writer->write(s.str(), m_kart_name[j] );
|
||||||
} // for j
|
} // for j
|
||||||
|
|
||||||
} // Write
|
} // Write
|
||||||
|
@ -13,48 +13,29 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "enet", "enet.vcproj", "{B0E
|
|||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
BulletDebug|Win32 = BulletDebug|Win32
|
|
||||||
BulletRelease|Win32 = BulletRelease|Win32
|
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
|
irrlicht-debug|Win32 = irrlicht-debug|Win32
|
||||||
Release|Win32 = Release|Win32
|
Release|Win32 = Release|Win32
|
||||||
ReplayDebug|Win32 = ReplayDebug|Win32
|
|
||||||
ReplayRelease|Win32 = ReplayRelease|Win32
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.BulletDebug|Win32.ActiveCfg = BulletDebug|Win32
|
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Debug|Win32.ActiveCfg = Release|Win32
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.BulletDebug|Win32.Build.0 = BulletDebug|Win32
|
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Debug|Win32.Build.0 = Release|Win32
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.BulletRelease|Win32.ActiveCfg = BulletRelease|Win32
|
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.irrlicht-debug|Win32.ActiveCfg = irrlicht-debug|Win32
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.BulletRelease|Win32.Build.0 = BulletRelease|Win32
|
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.irrlicht-debug|Win32.Build.0 = irrlicht-debug|Win32
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Release|Win32.ActiveCfg = Release|Win32
|
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Release|Win32.Build.0 = Release|Win32
|
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.Release|Win32.Build.0 = Release|Win32
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayDebug|Win32.ActiveCfg = ReplayDebug|Win32
|
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayDebug|Win32.Build.0 = ReplayDebug|Win32
|
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayRelease|Win32.ActiveCfg = ReplayRelease|Win32
|
|
||||||
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayRelease|Win32.Build.0 = ReplayRelease|Win32
|
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletDebug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletDebug|Win32.Build.0 = Debug|Win32
|
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletRelease|Win32.ActiveCfg = Release|Win32
|
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletRelease|Win32.Build.0 = Release|Win32
|
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Debug|Win32.ActiveCfg = Debug|Win32
|
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Debug|Win32.Build.0 = Debug|Win32
|
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.irrlicht-debug|Win32.ActiveCfg = Release|Win32
|
||||||
|
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.irrlicht-debug|Win32.Build.0 = Release|Win32
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Release|Win32.ActiveCfg = Release|Win32
|
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Release|Win32.Build.0 = Release|Win32
|
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Release|Win32.Build.0 = Release|Win32
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.ReplayDebug|Win32.ActiveCfg = Debug|Win32
|
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Debug|Win32.ActiveCfg = Release|Win32
|
||||||
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.ReplayRelease|Win32.ActiveCfg = Release|Win32
|
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Debug|Win32.Build.0 = Release|Win32
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.BulletDebug|Win32.ActiveCfg = Release|Win32
|
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.irrlicht-debug|Win32.ActiveCfg = Release|Win32
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.BulletDebug|Win32.Build.0 = Release|Win32
|
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.irrlicht-debug|Win32.Build.0 = Release|Win32
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.BulletRelease|Win32.ActiveCfg = Release|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.BulletRelease|Win32.Build.0 = Release|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Release|Win32.ActiveCfg = Release|Win32
|
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Release|Win32.Build.0 = Release|Win32
|
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.Release|Win32.Build.0 = Release|Win32
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.ReplayDebug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.ReplayDebug|Win32.Build.0 = Debug|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.ReplayRelease|Win32.ActiveCfg = Release|Win32
|
|
||||||
{B0E92B97-089A-4D5B-BF17-77F1BC5DAEEF}.ReplayRelease|Win32.Build.0 = Release|Win32
|
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -16,6 +16,94 @@
|
|||||||
<ToolFiles>
|
<ToolFiles>
|
||||||
</ToolFiles>
|
</ToolFiles>
|
||||||
<Configurations>
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="irrlicht-debug|Win32"
|
||||||
|
OutputDirectory="$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
CharacterSet="2"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
WholeProgramOptimization="false"
|
||||||
|
AdditionalIncludeDirectories="../../../src;../../../src/bullet/src;"$(STK_INCLUDE)";../../../src/enet/include;"C:\cygwin\home\joerg\irrlicht-1.5\include""
|
||||||
|
PreprocessorDefinitions="BT_NO_PROFILE;HAVE_OPENAL;HAVE_OGGVORBIS;_DEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"SVN\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;DEBUG;PACKAGE=\"supertuxkart\";HAVE_GETTEXT;ENABLE_NLS;HAVE_GLUT;HAVE_IRRLICHT"
|
||||||
|
GeneratePreprocessedFile="0"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
FloatingPointExceptions="false"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
Detect64BitPortabilityProblems="false"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib libogg.lib libvorbis.lib libvorbisfile.lib sg.lib ssg.lib ul.lib ssgAux.lib fnt.lib intl.lib Irrlicht.lib ws2_32.lib"
|
||||||
|
OutputFile="./../../../$(ProjectName)_irr_d.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
AdditionalLibraryDirectories=""$(STK_LIB)";"C:\cygwin\home\joerg\irrlicht-1.5\lib\Win32-visualstudio""
|
||||||
|
IgnoreAllDefaultLibraries="false"
|
||||||
|
IgnoreDefaultLibraryNames="libcmt.lib"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
GenerateMapFile="false"
|
||||||
|
MapFileName=""
|
||||||
|
MapExports="false"
|
||||||
|
SubSystem="1"
|
||||||
|
LinkTimeCodeGeneration="0"
|
||||||
|
RandomizedBaseAddress="1"
|
||||||
|
DataExecutionPrevention="0"
|
||||||
|
TargetMachine="1"
|
||||||
|
Profile="false"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="Debug|Win32"
|
Name="Debug|Win32"
|
||||||
OutputDirectory="$(ConfigurationName)"
|
OutputDirectory="$(ConfigurationName)"
|
||||||
@ -38,480 +126,6 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCMIDLTool"
|
Name="VCMIDLTool"
|
||||||
/>
|
/>
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="./../../../src;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
|
|
||||||
PreprocessorDefinitions="HAVE_OPENAL;HAVE_OGGVORBIS;_DEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"0.4alpha\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg_d.lib ssg_d.lib ul_d.lib ssgAux_d.lib fnt_d.lib"
|
|
||||||
OutputFile="./../../../$(ProjectName)_d.exe"
|
|
||||||
LinkIncremental="2"
|
|
||||||
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
|
|
||||||
IgnoreDefaultLibraryNames="libcmtd.lib"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
|
|
||||||
PreprocessorDefinitions="HAVE_OPENAL;HAVE_OGGVORBIS;NDEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"0.4alpha\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg.lib ssg.lib ul.lib ssgAux.lib fnt.lib"
|
|
||||||
OutputFile="./../../../$(ProjectName).exe"
|
|
||||||
LinkIncremental="1"
|
|
||||||
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
|
|
||||||
IgnoreDefaultLibraryNames="libcmt.lib"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="PLibSoundDebug|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
|
|
||||||
PreprocessorDefinitions="_DEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"0.4alpha\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib fnt_d.lib net_d.lib psl_d.lib pui_d.lib sg_d.lib sl_d.lib ssgAux_d.lib ul_d.lib js_d.lib puAux_d.lib pw_d.lib ssg_d.lib"
|
|
||||||
OutputFile="./../../../$(ProjectName)_plib_sound_d.exe"
|
|
||||||
LinkIncremental="2"
|
|
||||||
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
|
|
||||||
IgnoreDefaultLibraryNames="libcmtd.lib"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="PLibSoundRelease|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
|
|
||||||
PreprocessorDefinitions="NDEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"0.4alpha\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib fnt.lib net.lib psl.lib pui.lib sg.lib sl.lib ssgAux.lib ul.lib js.lib puAux.lib pw.lib ssg.lib"
|
|
||||||
OutputFile="./../../../$(ProjectName)_plib_sound.exe"
|
|
||||||
LinkIncremental="1"
|
|
||||||
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
|
|
||||||
IgnoreDefaultLibraryNames="libcmt.lib"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="ReplayDebug|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
|
|
||||||
PreprocessorDefinitions="HAVE_GHOST_REPLAY;HAVE_OPENAL;HAVE_OGGVORBIS;_DEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"0.4alpha\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
|
|
||||||
MinimalRebuild="true"
|
|
||||||
BasicRuntimeChecks="3"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="4"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg_d.lib ssg_d.lib ul_d.lib ssgAux_d.lib fnt_d.lib"
|
|
||||||
OutputFile="./../../../$(ProjectName)_replay_d.exe"
|
|
||||||
LinkIncremental="2"
|
|
||||||
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
|
|
||||||
IgnoreDefaultLibraryNames="libcmtd.lib"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="ReplayRelease|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
|
|
||||||
PreprocessorDefinitions="HAVE_GHOST_REPLAY;HAVE_OPENAL;HAVE_OGGVORBIS;NDEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\"0.4alpha\";_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
Detect64BitPortabilityProblems="true"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg.lib ssg.lib ul.lib ssgAux.lib fnt.lib"
|
|
||||||
OutputFile="./../../../$(ProjectName)_replay.exe"
|
|
||||||
LinkIncremental="1"
|
|
||||||
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
|
|
||||||
IgnoreDefaultLibraryNames="libcmt.lib"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
SubSystem="1"
|
|
||||||
OptimizeReferences="2"
|
|
||||||
EnableCOMDATFolding="2"
|
|
||||||
RandomizedBaseAddress="1"
|
|
||||||
DataExecutionPrevention="0"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="BulletDebug|Win32"
|
|
||||||
OutputDirectory="$(ConfigurationName)"
|
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
|
||||||
ConfigurationType="1"
|
|
||||||
CharacterSet="2"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
@ -579,7 +193,7 @@
|
|||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
Name="BulletRelease|Win32"
|
Name="Release|Win32"
|
||||||
OutputDirectory="$(ConfigurationName)"
|
OutputDirectory="$(ConfigurationName)"
|
||||||
IntermediateDirectory="$(ConfigurationName)"
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
ConfigurationType="1"
|
ConfigurationType="1"
|
||||||
|
@ -66,7 +66,7 @@ Flyable::Flyable(Kart *kart, PowerupType type, float mass) : Moveable()
|
|||||||
// Add the graphical model
|
// Add the graphical model
|
||||||
ssgTransform *m = getModelTransform();
|
ssgTransform *m = getModelTransform();
|
||||||
m->addKid(m_st_model[type]);
|
m->addKid(m_st_model[type]);
|
||||||
scene->add(m);
|
stk_scene->add(m);
|
||||||
} // Flyable
|
} // Flyable
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
void Flyable::createPhysics(float y_offset, const btVector3 &velocity,
|
void Flyable::createPhysics(float y_offset, const btVector3 &velocity,
|
||||||
@ -259,7 +259,7 @@ void Flyable::hit(Kart *kart_hit, MovingPhysics* moving_physics)
|
|||||||
// Now remove this projectile from the graph:
|
// Now remove this projectile from the graph:
|
||||||
ssgTransform *m = getModelTransform();
|
ssgTransform *m = getModelTransform();
|
||||||
m->removeAllKids();
|
m->removeAllKids();
|
||||||
scene->remove(m);
|
stk_scene->remove(m);
|
||||||
|
|
||||||
// The explosion is a bit higher in the air
|
// The explosion is a bit higher in the air
|
||||||
Vec3 pos_explosion=getXYZ();
|
Vec3 pos_explosion=getXYZ();
|
||||||
|
@ -41,13 +41,13 @@ Item::Item(ItemType type, const Vec3& xyz, const Vec3& normal,
|
|||||||
m_root->ref();
|
m_root->ref();
|
||||||
m_root->setTransform(const_cast<sgCoord*>(&m_coord.toSgCoord()));
|
m_root->setTransform(const_cast<sgCoord*>(&m_coord.toSgCoord()));
|
||||||
m_root->addKid(model);
|
m_root->addKid(model);
|
||||||
scene->add(m_root);
|
stk_scene->add(m_root);
|
||||||
} // Item
|
} // Item
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
Item::~Item()
|
Item::~Item()
|
||||||
{
|
{
|
||||||
scene->remove(m_root);
|
stk_scene->remove(m_root);
|
||||||
ssgDeRefDelete(m_root);
|
ssgDeRefDelete(m_root);
|
||||||
} // ~Item
|
} // ~Item
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ void Plunger::update(float dt)
|
|||||||
projectile_manager->notifyRemove();
|
projectile_manager->notifyRemove();
|
||||||
ssgTransform *m = getModelTransform();
|
ssgTransform *m = getModelTransform();
|
||||||
m->removeAllKids();
|
m->removeAllKids();
|
||||||
scene->remove(m);
|
stk_scene->remove(m);
|
||||||
}
|
}
|
||||||
if(m_rubber_band != NULL) m_rubber_band->update(dt);
|
if(m_rubber_band != NULL) m_rubber_band->update(dt);
|
||||||
return;
|
return;
|
||||||
|
@ -73,7 +73,7 @@ void ProjectileManager::cleanup()
|
|||||||
for(Explosions::iterator i = m_active_explosions.begin();
|
for(Explosions::iterator i = m_active_explosions.begin();
|
||||||
i != m_active_explosions.end(); ++i)
|
i != m_active_explosions.end(); ++i)
|
||||||
{
|
{
|
||||||
scene->remove((ssgTransform*)*i);
|
stk_scene->remove((ssgTransform*)*i);
|
||||||
ssgDeRefDelete(*i);
|
ssgDeRefDelete(*i);
|
||||||
}
|
}
|
||||||
m_active_explosions.clear();
|
m_active_explosions.clear();
|
||||||
|
@ -67,7 +67,7 @@ RubberBand::RubberBand(Plunger *plunger, const Kart &kart)
|
|||||||
setState(m_state);
|
setState(m_state);
|
||||||
//setState(material_manager->getMaterial("chrome.rgb")->getState());
|
//setState(material_manager->getMaterial("chrome.rgb")->getState());
|
||||||
|
|
||||||
scene->add(this);
|
stk_scene->add(this);
|
||||||
} // RubberBand
|
} // RubberBand
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -76,7 +76,7 @@ RubberBand::RubberBand(Plunger *plunger, const Kart &kart)
|
|||||||
*/
|
*/
|
||||||
void RubberBand::removeFromScene()
|
void RubberBand::removeFromScene()
|
||||||
{
|
{
|
||||||
scene->remove(this);
|
stk_scene->remove(this);
|
||||||
} // removeFromScene
|
} // removeFromScene
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include "file_manager.hpp"
|
#include "file_manager.hpp"
|
||||||
#include "stk_config.hpp"
|
#include "stk_config.hpp"
|
||||||
#include "user_config.hpp"
|
#include "user_config.hpp"
|
||||||
|
#include "callback_manager.hpp"
|
||||||
#include "challenges/unlock_manager.hpp"
|
#include "challenges/unlock_manager.hpp"
|
||||||
#include "karts/kart_properties.hpp"
|
#include "karts/kart_properties.hpp"
|
||||||
#include "utils/string_utils.hpp"
|
#include "utils/string_utils.hpp"
|
||||||
|
@ -40,7 +40,7 @@ PlayerKart::PlayerKart(const std::string& kart_name, int position, Player *playe
|
|||||||
{
|
{
|
||||||
m_player = player;
|
m_player = player;
|
||||||
m_penalty_time = 0.0f;
|
m_penalty_time = 0.0f;
|
||||||
m_camera = scene->createCamera(player_index, this);
|
m_camera = stk_scene->createCamera(player_index, this);
|
||||||
m_camera->setMode(Camera::CM_NORMAL);
|
m_camera->setMode(Camera::CM_NORMAL);
|
||||||
|
|
||||||
m_bzzt_sound = sfx_manager->newSFX(SFXManager::SOUND_BZZT );
|
m_bzzt_sound = sfx_manager->newSFX(SFXManager::SOUND_BZZT );
|
||||||
|
@ -103,6 +103,12 @@ namespace lisp
|
|||||||
return false;
|
return false;
|
||||||
return lisp->get(val);
|
return lisp->get(val);
|
||||||
}
|
}
|
||||||
|
template<class T>
|
||||||
|
bool get(std::string &name, T& val) const
|
||||||
|
{
|
||||||
|
return get(name.c_str(), val);
|
||||||
|
}
|
||||||
|
|
||||||
bool get(const char* name, sgVec4& val) const
|
bool get(const char* name, sgVec4& val) const
|
||||||
{
|
{
|
||||||
const Lisp* lisp = getLisp(name);
|
const Lisp* lisp = getLisp(name);
|
||||||
|
@ -504,7 +504,7 @@ void CleanTuxKart()
|
|||||||
if(loader) delete loader;
|
if(loader) delete loader;
|
||||||
if(translations) delete translations;
|
if(translations) delete translations;
|
||||||
if(file_manager) delete file_manager;
|
if(file_manager) delete file_manager;
|
||||||
if(scene) delete scene;
|
if(stk_scene) delete stk_scene;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -555,7 +555,7 @@ int main(int argc, char *argv[] )
|
|||||||
powerup_manager -> loadPowerups ();
|
powerup_manager -> loadPowerups ();
|
||||||
item_manager -> loadDefaultItems();
|
item_manager -> loadDefaultItems();
|
||||||
attachment_manager -> loadModels ();
|
attachment_manager -> loadModels ();
|
||||||
scene = new Scene();
|
stk_scene = new Scene();
|
||||||
|
|
||||||
//For some reason, calling this before the material loading screws
|
//For some reason, calling this before the material loading screws
|
||||||
//the background picture.
|
//the background picture.
|
||||||
|
@ -124,7 +124,7 @@ void MainLoop::run()
|
|||||||
if(user_config->m_profile) dt=1.0f/60.0f;
|
if(user_config->m_profile) dt=1.0f/60.0f;
|
||||||
// In the first call dt might be large (includes loading time),
|
// In the first call dt might be large (includes loading time),
|
||||||
// which can cause the camera to significantly tilt
|
// which can cause the camera to significantly tilt
|
||||||
scene->draw(RaceManager::getWorld()->getPhase()==SETUP_PHASE ? 0.0f : dt);
|
stk_scene->draw(RaceManager::getWorld()->getPhase()==SETUP_PHASE ? 0.0f : dt);
|
||||||
|
|
||||||
// Again, only receive updates if the race isn't over - once the
|
// Again, only receive updates if the race isn't over - once the
|
||||||
// race results are displayed (i.e. game is in finish phase)
|
// race results are displayed (i.e. game is in finish phase)
|
||||||
|
@ -49,10 +49,7 @@
|
|||||||
#include "tracks/track_manager.hpp"
|
#include "tracks/track_manager.hpp"
|
||||||
#include "utils/constants.hpp"
|
#include "utils/constants.hpp"
|
||||||
#include "utils/translation.hpp"
|
#include "utils/translation.hpp"
|
||||||
|
#include "utils/string_utils.hpp"
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
|
||||||
# define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
World::World() : TimedRace()
|
World::World() : TimedRace()
|
||||||
@ -114,7 +111,7 @@ void World::init()
|
|||||||
// karts can be seen.
|
// karts can be seen.
|
||||||
if(i==race_manager->getNumKarts()-1)
|
if(i==race_manager->getNumKarts()-1)
|
||||||
{
|
{
|
||||||
scene->createCamera(local_player_id, newkart);
|
stk_scene->createCamera(local_player_id, newkart);
|
||||||
m_local_player_karts[0] = static_cast<PlayerKart*>(newkart);
|
m_local_player_karts[0] = static_cast<PlayerKart*>(newkart);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -147,7 +144,7 @@ void World::init()
|
|||||||
|
|
||||||
newkart -> getModelTransform() -> clrTraversalMaskBits(SSGTRAV_ISECT|SSGTRAV_HOT);
|
newkart -> getModelTransform() -> clrTraversalMaskBits(SSGTRAV_ISECT|SSGTRAV_HOT);
|
||||||
|
|
||||||
scene->add ( newkart -> getModelTransform() ) ;
|
stk_scene->add ( newkart -> getModelTransform() ) ;
|
||||||
m_kart.push_back(newkart);
|
m_kart.push_back(newkart);
|
||||||
newkart->setWorldKartId(m_kart.size()-1);
|
newkart->setWorldKartId(m_kart.size()-1);
|
||||||
} // for i
|
} // for i
|
||||||
@ -413,10 +410,9 @@ void World::removeKart(int kart_number)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char s[MAX_MESSAGE_LENGTH];
|
std::string s = _("'%s' has\nbeen eliminated.");
|
||||||
snprintf(s, MAX_MESSAGE_LENGTH,_("'%s' has\nbeen eliminated."),
|
m->addMessage( StringUtils::insert_string(s, kart->getName()),
|
||||||
kart->getName().c_str());
|
*i, 2.0f, 60);
|
||||||
m->addMessage( s, *i, 2.0f, 60);
|
|
||||||
}
|
}
|
||||||
} // for i in kart
|
} // for i in kart
|
||||||
} // if raceMenu exist
|
} // if raceMenu exist
|
||||||
@ -514,7 +510,7 @@ void World::restartRace()
|
|||||||
callback_manager->reset();
|
callback_manager->reset();
|
||||||
|
|
||||||
// Resets the cameras in case that they are pointing too steep up or down
|
// Resets the cameras in case that they are pointing too steep up or down
|
||||||
scene->reset();
|
stk_scene->reset();
|
||||||
} // restartRace
|
} // restartRace
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -86,7 +86,7 @@ MovingPhysics::~MovingPhysics()
|
|||||||
delete m_body;
|
delete m_body;
|
||||||
delete m_motion_state;
|
delete m_motion_state;
|
||||||
delete m_shape;
|
delete m_shape;
|
||||||
scene->remove(this);
|
stk_scene->remove(this);
|
||||||
} // ~MovingPhysics
|
} // ~MovingPhysics
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
@ -112,7 +112,7 @@ void MovingPhysics::init()
|
|||||||
}
|
}
|
||||||
ssgBranch *parent = getParent(0);
|
ssgBranch *parent = getParent(0);
|
||||||
|
|
||||||
scene->add(this);
|
stk_scene->add(this);
|
||||||
parent->removeKid(this);
|
parent->removeKid(this);
|
||||||
|
|
||||||
// 2. Determine the original position of the object
|
// 2. Determine the original position of the object
|
||||||
|
@ -275,7 +275,7 @@ void RaceManager::next()
|
|||||||
network_manager->beginReadySetGoBarrier();
|
network_manager->beginReadySetGoBarrier();
|
||||||
else
|
else
|
||||||
network_manager->setState(NetworkManager::NS_WAIT_FOR_RACE_DATA);
|
network_manager->setState(NetworkManager::NS_WAIT_FOR_RACE_DATA);
|
||||||
scene->clear();
|
stk_scene->clear();
|
||||||
startNextRace();
|
startNextRace();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -370,7 +370,7 @@ void RaceManager::exit_race()
|
|||||||
{
|
{
|
||||||
menu_manager->switchToMainMenu();
|
menu_manager->switchToMainMenu();
|
||||||
}
|
}
|
||||||
scene->clear();
|
stk_scene->clear();
|
||||||
delete world;
|
delete world;
|
||||||
world = 0;
|
world = 0;
|
||||||
m_track_number = 0;
|
m_track_number = 0;
|
||||||
|
@ -526,7 +526,7 @@ void Track::addDebugToScene(int type) const
|
|||||||
colour[2] = 0;
|
colour[2] = 0;
|
||||||
}
|
}
|
||||||
sphere->setColour(colour);
|
sphere->setColour(colour);
|
||||||
scene->add(sphere);
|
stk_scene->add(sphere);
|
||||||
} // for i
|
} // for i
|
||||||
} /// type ==1
|
} /// type ==1
|
||||||
// 2: drivelines, 4: driveline with tolerance
|
// 2: drivelines, 4: driveline with tolerance
|
||||||
@ -561,7 +561,7 @@ void Track::addDebugToScene(int type) const
|
|||||||
(ssgNormalArray*)NULL,
|
(ssgNormalArray*)NULL,
|
||||||
(ssgTexCoordArray*)NULL,
|
(ssgTexCoordArray*)NULL,
|
||||||
c_array);
|
c_array);
|
||||||
scene->add(l);
|
stk_scene->add(l);
|
||||||
}
|
}
|
||||||
} // addDebugToScene
|
} // addDebugToScene
|
||||||
|
|
||||||
@ -1196,7 +1196,7 @@ void Track::loadTrackModel()
|
|||||||
|
|
||||||
// Start building the scene graph
|
// Start building the scene graph
|
||||||
m_model = new ssgBranch ;
|
m_model = new ssgBranch ;
|
||||||
scene->add(m_model);
|
stk_scene->add(m_model);
|
||||||
|
|
||||||
char s [ 1024 ] ;
|
char s [ 1024 ] ;
|
||||||
|
|
||||||
|
@ -352,9 +352,7 @@ void UserConfig::loadConfig(const std::string& filename)
|
|||||||
const lisp::Lisp* lisp = root->getLisp("tuxkart-config");
|
const lisp::Lisp* lisp = root->getLisp("tuxkart-config");
|
||||||
if(!lisp)
|
if(!lisp)
|
||||||
{
|
{
|
||||||
char msg[MAX_ERROR_MESSAGE_LENGTH];
|
throw std::runtime_error("No tuxkart-config node");
|
||||||
snprintf(msg, sizeof(msg), "No tuxkart-config node");
|
|
||||||
throw std::runtime_error(msg);
|
|
||||||
}
|
}
|
||||||
int configFileVersion = 0;
|
int configFileVersion = 0;
|
||||||
lisp->get("configFileVersion", configFileVersion);
|
lisp->get("configFileVersion", configFileVersion);
|
||||||
@ -457,9 +455,9 @@ void UserConfig::loadConfig(const std::string& filename)
|
|||||||
const lisp::Lisp* reader = lisp->getLisp(temp);
|
const lisp::Lisp* reader = lisp->getLisp(temp);
|
||||||
if(!reader)
|
if(!reader)
|
||||||
{
|
{
|
||||||
char msg[MAX_ERROR_MESSAGE_LENGTH];
|
std::ostringstream msg;
|
||||||
snprintf(msg, sizeof(msg), "No '%s' node", temp.c_str());
|
msg << "No '" << temp << "' node";
|
||||||
throw std::runtime_error(msg);
|
throw std::runtime_error(msg.str());
|
||||||
}
|
}
|
||||||
std::string name;
|
std::string name;
|
||||||
reader->get("name", name);
|
reader->get("name", name);
|
||||||
@ -467,12 +465,12 @@ void UserConfig::loadConfig(const std::string& filename)
|
|||||||
{
|
{
|
||||||
// For older config files, replace the default player
|
// For older config files, replace the default player
|
||||||
// names "Player %d" with the user name
|
// names "Player %d" with the user name
|
||||||
char sDefaultName[10];
|
std::ostringstream sDefaultName;
|
||||||
snprintf(sDefaultName, sizeof(sDefaultName),
|
|
||||||
"Player %d",i+1);
|
sDefaultName << "Player " << i+1;
|
||||||
// If the config file does not contain a name or the old
|
// If the config file does not contain a name or the old
|
||||||
// default name, set the default username as player name.
|
// default name, set the default username as player name.
|
||||||
if(name.size()==0 || name==sDefaultName) name=m_username;
|
if(name.size()==0 || name==sDefaultName.str()) name=m_username;
|
||||||
}
|
}
|
||||||
m_player[i].setName(name);
|
m_player[i].setName(name);
|
||||||
|
|
||||||
@ -921,41 +919,43 @@ void UserConfig::writeInput(lisp::Writer *writer, const Input &input)
|
|||||||
std::string UserConfig::getInputAsString(const Input &input)
|
std::string UserConfig::getInputAsString(const Input &input)
|
||||||
{
|
{
|
||||||
char msg[MAX_MESSAGE_LENGTH];
|
char msg[MAX_MESSAGE_LENGTH];
|
||||||
std::ostringstream stm;
|
std::string s;
|
||||||
|
|
||||||
switch (input.type)
|
switch (input.type)
|
||||||
{
|
{
|
||||||
case Input::IT_NONE:
|
case Input::IT_NONE:
|
||||||
snprintf(msg, sizeof(msg), _("not set"));
|
s = _("not set");
|
||||||
break;
|
break;
|
||||||
case Input::IT_KEYBOARD:
|
case Input::IT_KEYBOARD:
|
||||||
snprintf(msg, sizeof(msg), "%s", SDL_GetKeyName((SDLKey) input.id0));
|
s = SDL_GetKeyName((SDLKey) input.id0);
|
||||||
break;
|
break;
|
||||||
case Input::IT_STICKMOTION:
|
case Input::IT_STICKMOTION:
|
||||||
snprintf(msg, sizeof(msg), _("joy %d axis %d %c"),
|
snprintf(msg, sizeof(msg), _("joy %d axis %d %c"),
|
||||||
input.id0, input.id1,
|
input.id0, input.id1,
|
||||||
(input.id2 == Input::AD_NEGATIVE) ? '-' : '+');
|
(input.id2 == Input::AD_NEGATIVE) ? '-' : '+');
|
||||||
|
s = msg;
|
||||||
break;
|
break;
|
||||||
case Input::IT_STICKBUTTON:
|
case Input::IT_STICKBUTTON:
|
||||||
snprintf(msg, sizeof(msg), _("joy %d btn %d"), input.id0, input.id1);
|
snprintf(msg, sizeof(msg), _("joy %d btn %d"), input.id0, input.id1);
|
||||||
|
s = msg;
|
||||||
break;
|
break;
|
||||||
case Input::IT_STICKHAT:
|
case Input::IT_STICKHAT:
|
||||||
snprintf(msg, sizeof(msg), _("joy %d hat %d"), input.id0, input.id1);
|
snprintf(msg, sizeof(msg), _("joy %d hat %d"), input.id0, input.id1);
|
||||||
|
s = msg;
|
||||||
break;
|
break;
|
||||||
case Input::IT_MOUSEBUTTON:
|
case Input::IT_MOUSEBUTTON:
|
||||||
snprintf(msg, sizeof(msg), _("mouse btn %d"), input.id0);
|
snprintf(msg, sizeof(msg), _("mouse btn %d"), input.id0);
|
||||||
|
s = msg;
|
||||||
break;
|
break;
|
||||||
case Input::IT_MOUSEMOTION:
|
case Input::IT_MOUSEMOTION:
|
||||||
snprintf(msg, sizeof(msg), _("mouse axis %d %c"),
|
snprintf(msg, sizeof(msg), _("mouse axis %d %c"),
|
||||||
input.id0, ((input.id1 == Input::AD_NEGATIVE) ? '-' : '+'));
|
input.id0, ((input.id1 == Input::AD_NEGATIVE) ? '-' : '+'));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
snprintf(msg, sizeof(msg), _("Invalid"));
|
s = _("Invalid");
|
||||||
}
|
}
|
||||||
|
|
||||||
stm << msg;
|
return s;
|
||||||
|
|
||||||
return stm.str();
|
|
||||||
} // GetKeyAsString
|
} // GetKeyAsString
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
@ -127,7 +127,6 @@ namespace StringUtils
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace StringUtils
|
} // namespace StringUtils
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
// along with this program; if not, write to the Free Software
|
// along with this program; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
#ifndef HEADER_STRING_UTILS_H
|
#ifndef HEADER_STRING_UTILS_HPP
|
||||||
#define HEADER_STRING_UTILS_H
|
#define HEADER_STRING_UTILS_HPP
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -72,6 +72,29 @@ namespace StringUtils
|
|||||||
std::string upcase (const std::string&);
|
std::string upcase (const std::string&);
|
||||||
std::string downcase (const std::string&);
|
std::string downcase (const std::string&);
|
||||||
std::vector<std::string> split(const std::string& s, char c);
|
std::vector<std::string> split(const std::string& s, char c);
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
/** Replaces all '%s' or '%d' in the first string with the 2nd string. So
|
||||||
|
* this is basically a simplified s(n)printf replacement, which doesn't
|
||||||
|
* rely on s(n)printf (which is not that portable).
|
||||||
|
* \param s String in which all %s or %dare replaced.
|
||||||
|
* \param a Value to replace all %s or %d with.
|
||||||
|
*/
|
||||||
|
template <class T>
|
||||||
|
std::string insert_string(const std::string &s, const T &a)
|
||||||
|
{
|
||||||
|
std::vector<std::string> sv = StringUtils::split(s, '%');
|
||||||
|
std::string new_string="";
|
||||||
|
for(unsigned int i=0; i<sv.size(); i++)
|
||||||
|
{
|
||||||
|
if(sv[i][0]=='s' || sv[i][0]=='d')
|
||||||
|
{
|
||||||
|
new_string+=a+sv[i].substr(1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
new_string+=sv[i];
|
||||||
|
}
|
||||||
|
return new_string;
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace StringUtils
|
} // namespace StringUtils
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user