Revision: 4489
http://cel.svn.sourceforge.net/cel/?rev=4489&view=rev
Author: jorrit
Date: 2011-09-28 09:34:00 +0000 (Wed, 28 Sep 2011)
Log Message:
-----------
Added a bit more variety on the tables.
Modified Paths:
--------------
cel/trunk/apps/elcmtest/elcmtest.cpp
Modified: cel/trunk/apps/elcmtest/elcmtest.cpp
===================================================================
--- cel/trunk/apps/elcmtest/elcmtest.cpp 2011-09-28 07:47:42 UTC (rev
4488)
+++ cel/trunk/apps/elcmtest/elcmtest.cpp 2011-09-28 09:34:00 UTC (rev
4489)
@@ -239,11 +239,22 @@
params.AttachNew (new celVariableParameterBlock ());
if (!obj->SetEntity (name, params))
return ReportError ("Could not set entity template 'Table'!");
- obj = dynworld->AddObject ("Money", csReversibleTransform (
+
+ csString objName, tmpName;
+ switch (rnd.Get (5))
+ {
+ case 0: objName = "Money"; tmpName = "mon"; break;
+ case 1: objName = "Steak"; tmpName = "ste"; break;
+ case 2: objName = "Can"; tmpName = "can"; break;
+ case 3: objName = "Milk"; tmpName = "mil"; break;
+ case 4: objName = "Cup"; tmpName = "cup"; break;
+ }
+ obj = dynworld->AddObject (objName, csReversibleTransform (
matId, csVector3 (float (x*5), 0, float (y*5))));
- name.Format ("mon%d_%d", x+50, y+50);
+ name.Format ("%s%d_%d", tmpName.GetData (), x+50, y+50);
if (!obj->SetEntity (name, params))
- return ReportError ("Could not set entity template 'Money'!");
+ return ReportError ("Could not set entity template '%s'!",
+ objName.GetData ());
}
else
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Cel-cvs-update mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cel-cvs-update