Alvaro Cassinelli / Mbed 2 deprecated skinGames_forktest

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Revision:
19:228430f1350e
Parent:
18:d72935b13858
Child:
22:d87317d7ca91
--- a/blobConfig.cpp	Sat Apr 28 12:35:21 2012 +0000
+++ b/blobConfig.cpp	Sat Apr 28 13:42:14 2012 +0000
@@ -58,6 +58,16 @@
     numBlobs=blobArray.size();
 }
 
+void blobConfig::addOneElasticLoopContractCentralFast() {
+    elasticLoop* pBlob= new elasticLoop();
+    pBlob->createBlob(blobArray.size(), CONTRACT_CENTRAL_FAST, vector2Df(CENTER_AD_MIRROR_X, CENTER_AD_MIRROR_Y), vector2Df(0,0));
+    // add this relaxing loop to the present config:
+    blobArray.push_back(pBlob);
+
+    // update auxiliary variable numBlobs (just for easy reference):
+    numBlobs=blobArray.size();
+}
+
 void blobConfig::addOneElasticContourFollowing() {
 
     elasticLoop* pBlob= new elasticLoop();