#include "global.h" /* ----------------------------------------------------------------------------- Class: Character Desc: See header. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "Character.h" #include "IniFile.h" #include "RageUtil.h" #include "arch/arch.h" bool Character::Load( CString sCharDir ) { // Save character directory if( sCharDir.Right(1)!=SLASH ) sCharDir += SLASH; m_sCharDir = sCharDir; // Save character name vector as; split( sCharDir, SLASH, as ); m_sName = as.back(); // Save attacks IniFile ini; ini.SetPath( sCharDir+"character.ini" ); if( !ini.ReadFile() ) return false; for( int i=0; i