summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/robospierre/element.h
diff options
context:
space:
mode:
authorJérôme Jutteau2011-06-01 18:31:05 +0200
committerJérôme Jutteau2011-06-01 19:11:22 +0200
commit7c9efd7aaf8a65ba032426dcc318a9cab4d37985 (patch)
tree11dfcf220ab74d127622cde29b50e9fc349d5ca6 /digital/io-hub/src/robospierre/element.h
parentcbf2a5beed9a75707f4a2fe00f685c2afd8dfba4 (diff)
digital/io-hub: add bonus coeff to elements and adjusted scores algorithms
Diffstat (limited to 'digital/io-hub/src/robospierre/element.h')
-rw-r--r--digital/io-hub/src/robospierre/element.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/digital/io-hub/src/robospierre/element.h b/digital/io-hub/src/robospierre/element.h
index bcc40f43..fa9fced7 100644
--- a/digital/io-hub/src/robospierre/element.h
+++ b/digital/io-hub/src/robospierre/element.h
@@ -90,6 +90,8 @@ struct element_t
vect_t pos;
/** Emplacement attributes. */
uint8_t attr;
+ /** Bonus coefficient (or Mallus if negative). */
+ int8_t bonus;
};
typedef struct element_t element_t;
@@ -104,6 +106,8 @@ typedef struct element_t element_t;
#define ELEMENT_UNLOAD_SAFE_START 63
#define ELEMENT_UNLOAD_SAFE_END 66
+#define ELEMENT_BONUS_COEFF 100
+
/** Elements on table. */
extern struct element_t element_table[];