[xiph-commits] r9777 - trunk/planarity

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Fri Aug 19 17:39:11 PDT 2005


Author: xiphmont
Date: 2005-08-19 17:39:09 -0700 (Fri, 19 Aug 2005)
New Revision: 9777

Modified:
   trunk/planarity/generate.c
   trunk/planarity/levelstate.c
   trunk/planarity/version.h
Log:
flush local changes to SVN



Modified: trunk/planarity/generate.c
===================================================================
--- trunk/planarity/generate.c	2005-08-20 00:03:21 UTC (rev 9776)
+++ trunk/planarity/generate.c	2005-08-20 00:39:09 UTC (rev 9777)
@@ -184,14 +184,15 @@
   m.height=2;
   vertex *vlist;
 
+  srandom(order);
   {
     while(order--){
       if(flag){
 	flag=0;
-	m.width+=2;
+	m.height+=1;
       }else{
 	flag=1;
-	m.height+=1;
+	m.width+=2;
       }
     }
   }

Modified: trunk/planarity/levelstate.c
===================================================================
--- trunk/planarity/levelstate.c	2005-08-20 00:03:21 UTC (rev 9776)
+++ trunk/planarity/levelstate.c	2005-08-20 00:39:09 UTC (rev 9777)
@@ -157,3 +157,41 @@
   return 0;
 }
 
+long levelstate_total_hiscore(){
+  long score=0;
+  levelstate *l=head;
+
+  while(l){
+    score+=l->highscore;
+    l=l->next;
+  }
+  return score;
+}
+
+long levelstate_get_hiscore(){
+  if(!curr)return 0;
+  return curr->highscore;
+}
+
+void levelstate_set_hiscore(long score){
+  if(curr)
+    curr->highscore=score;
+}
+
+void levelstate_next(){
+
+
+
+
+}
+
+void levelstate_prev(){
+
+
+
+}
+
+void levelstate_go(){
+
+
+}

Modified: trunk/planarity/version.h
===================================================================
--- trunk/planarity/version.h	2005-08-20 00:03:21 UTC (rev 9776)
+++ trunk/planarity/version.h	2005-08-20 00:39:09 UTC (rev 9777)
@@ -1,2 +1,2 @@
 #define VERSION "$Id$ "
-/* DO NOT EDIT: Automated versioning hack [Sat Aug 13 01:18:54 EDT 2005] */
+/* DO NOT EDIT: Automated versioning hack [Sat Aug 13 01:31:34 EDT 2005] */



More information about the commits mailing list