public EqualityDrawOperation( Player player, Command cmd )
: base(player)
{
string strFunc = cmd.Next();
if ( string.IsNullOrWhiteSpace( strFunc ) ) {
player.Message( "empty equality expression" );
return;
}
if ( strFunc.Length < 3 ) {
player.Message( "expression is too short (should be like f(x,y,z)=g(x,y,z))" );
return;
}
strFunc = strFunc.ToLower();
_expression = SimpleParser.ParseAsEquality( strFunc, new string[] { "x", "y", "z" } );
player.Message( "Expression parsed as " + _expression.Print() );
string scalingStr = cmd.Next();
_scaler = new Scaler( scalingStr );
}