[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Enigma-cvs] enigma/src enigma.hh, 1.17.2.3, 1.17.2.4 enigma.cc, 1.26.2.
From: |
Daniel Heck <address@hidden> |
Subject: |
[Enigma-cvs] enigma/src enigma.hh, 1.17.2.3, 1.17.2.4 enigma.cc, 1.26.2.2, 1.26.2.3 |
Date: |
Mon, 06 Oct 2003 19:16:20 +0000 |
Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv20658/src
Modified Files:
Tag: enigma0_80_rc
enigma.hh enigma.cc
Log Message:
* New: to_direction()
Index: enigma.hh
===================================================================
RCS file: /cvsroot/enigma/enigma/src/enigma.hh,v
retrieving revision 1.17.2.3
retrieving revision 1.17.2.4
diff -C2 -d -r1.17.2.3 -r1.17.2.4
*** enigma.hh 30 Sep 2003 14:03:54 -0000 1.17.2.3
--- enigma.hh 6 Oct 2003 19:16:17 -0000 1.17.2.4
***************
*** 149,152 ****
--- 149,153 ----
double to_double(const Value &v);
const char *to_string(const Value &v);
+ Direction to_direction (const Value &v);
/*
Index: enigma.cc
===================================================================
RCS file: /cvsroot/enigma/enigma/src/enigma.cc,v
retrieving revision 1.26.2.2
retrieving revision 1.26.2.3
diff -C2 -d -r1.26.2.2 -r1.26.2.3
*** enigma.cc 30 Sep 2003 14:03:54 -0000 1.26.2.2
--- enigma.cc 6 Oct 2003 19:16:17 -0000 1.26.2.3
***************
*** 285,288 ****
--- 285,294 ----
}
+ Direction
+ enigma::to_direction (const Value &v)
+ {
+ int val = Clamp(to_int(v), 0, 3);
+ return static_cast<Direction>(val);
+ }
ostream& enigma::operator<<(ostream& os, const Value& val)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Enigma-cvs] enigma/src enigma.hh, 1.17.2.3, 1.17.2.4 enigma.cc, 1.26.2.2, 1.26.2.3,
Daniel Heck <address@hidden> <=
- Prev by Date:
[Enigma-cvs] enigma/src actors.cc,1.41.2.6,1.41.2.7
- Next by Date:
[Enigma-cvs] enigma/data/levels ss5.lua, 1.1, 1.1.2.1 duffy22.lua, 1.1, 1.1.2.1 duffy11.lua, 1.1, 1.1.2.1
- Previous by thread:
[Enigma-cvs] enigma/src actors.cc,1.41.2.6,1.41.2.7
- Next by thread:
[Enigma-cvs] enigma/data/levels ss5.lua, 1.1, 1.1.2.1 duffy22.lua, 1.1, 1.1.2.1 duffy11.lua, 1.1, 1.1.2.1
- Index(es):