Pass ActorCommand structures to Actor instead of unparsed command strings.

This way, we can potentially do the parsing early and not parse inside of Actor as the command is executing.
This commit is contained in:
Chris Danford
2004-11-06 23:13:47 +00:00
parent 6a84b15d3d
commit bcbe615c0d
55 changed files with 349 additions and 308 deletions
+8 -1
View File
@@ -52,7 +52,7 @@ CString ActorCommand::GetOriginalCommandString() const
return join( ",", asTokens );
}
void ParseCommands( const CString &sCommands, vector<ActorCommand> &vCommandsOut )
void ParseActorCommands( const CString &sCommands, ActorCommands &vCommandsOut )
{
vCommandsOut.clear();
CStringArray vsCommands;
@@ -68,6 +68,13 @@ void ParseCommands( const CString &sCommands, vector<ActorCommand> &vCommandsOut
}
}
ActorCommands ParseActorCommands( const CString &sCommands )
{
ActorCommands vCommands;
ParseActorCommands( sCommands, vCommands );
return vCommands;
}
/*
* (c) 2004 Chris Danford
* All rights reserved.