1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00
Commit Graph

170 Commits

Author SHA1 Message Date
Zeno Rogue
2ffda6da75 parser:: lands_at function 2024-07-27 18:40:41 +02:00
Zeno Rogue
cc3863d1fe cleaned up paths for MUSIC, SOUND, and other 2024-07-10 00:05:30 +02:00
Zeno Rogue
8a23faa8b0 number parser now reads scientific notation correctly, and throws exception if ill-formed 2024-06-16 13:50:06 +02:00
Zeno Rogue
727ae8a260 gametime available in formulas 2024-05-28 15:09:18 +02:00
Zeno Rogue
99bc842c57 generalized show_turns to menu_format 2024-05-28 15:09:00 +02:00
Zeno Rogue
a755f26075 make exception text available for parse errors 2024-05-28 13:05:55 +02:00
Zeno Rogue
a3261b21da throw color parse error if wrong length 2024-05-27 22:24:20 +02:00
Zeno Rogue
0df75589ca phi now available in formulas 2024-05-27 14:20:54 +02:00
Zeno Rogue
03c549b010 hsv color definition 2024-05-27 14:20:54 +02:00
Zeno Rogue
937a291485 atan2 function in parser 2024-05-27 14:20:54 +02:00
Zeno Rogue
0e09775669 clamp function 2024-05-27 14:20:54 +02:00
Zeno Rogue
5c03f9c7fe fixed wallif 2024-05-27 14:20:54 +02:00
Zeno Rogue
3ca75bec8e parsecolortable 2024-05-27 14:20:53 +02:00
Zeno Rogue
6ca2051c96 bugfix in parsecolor 2024-05-27 14:20:53 +02:00
Zeno Rogue
e5e89c4800 all color names are now accepted in parsecolor 2024-05-27 14:20:53 +02:00
Zeno Rogue
bb6df35bf2 moved wallif to parsecolor from general parse 2024-05-27 14:20:53 +02:00
Zeno Rogue
e6417951de fixed rgb color passing 2024-05-27 14:20:53 +02:00
Zeno Rogue
f823a53f84 fixed hex color parsing 2024-05-27 14:20:53 +02:00
Zeno Rogue
83575d9d7d color parser 2024-05-27 14:20:53 +02:00
Zeno Rogue
d381caba1f better a/b anim pars 2024-05-27 14:20:53 +02:00
Zeno Rogue
96be05484a tau can be now used in formulas 2024-05-27 14:20:53 +02:00
Zeno Rogue
4d57041c9f angles now can be given in quarterturns 2024-05-27 14:20:53 +02:00
Zeno Rogue
5022b76d75 use turncount, framecount and illegal_moves in formulas 2024-05-27 14:20:53 +02:00
Arthur O'Dwyer
62629f3e70 Change static const to static constexpr wherever possible
Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
2023-08-23 09:47:28 -08:00
Zeno Rogue
fe6d7abec2 improved matrix parser 2023-08-09 14:35:47 +02:00
Zeno Rogue
c914bf86e0 fixed units in matrix parser 2023-08-08 16:30:27 +02:00
Zeno Rogue
1554caa7b4 rotations are now represented as matrices, not angles 2023-08-08 16:27:52 +02:00
Zeno Rogue
782b6ab4f8 mousexs and mouseys variables in formulae 2023-04-15 01:29:59 +02:00
Zeno Rogue
ad90aecee7 fixed crash in edgelen 2023-03-16 14:42:10 +01:00
Zeno Rogue
06523e063e used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 2022-11-13 16:22:55 +01:00
Zeno Rogue
31b2bd9690 find_file to find files in HYPERPATH 2022-08-26 12:23:58 +02:00
Zeno Rogue
464f4277cc fixed a memory leak in (de)compress_string 2022-08-07 01:57:06 +02:00
Zeno Rogue
f101ddb7fd utils:: read_file_as_string 2022-07-13 21:00:16 +02:00
Zeno Rogue
78b0324a91 fixed some CAP guards 2022-05-06 19:54:55 +02:00
Zeno Rogue
31a554f077 ultra-ideal vertices should work now 2022-04-26 16:19:02 +02:00
Zeno Rogue
0acebce55a parser:: MAX_EDGE and MAX_VALENCE constants are now available 2022-04-24 22:57:35 +02:00
Zeno Rogue
0c7a429985 parser:: ifz function 2022-04-24 22:57:34 +02:00
Zeno Rogue
d82ac26ef0 parser:: removed exceptions in arcmedge since they might not work correctly with conditionals 2022-04-24 22:57:34 +02:00
Zeno Rogue
f845523bcd parser:: arcmcurv function 2022-04-24 22:57:34 +02:00
Zeno Rogue
3f8e9dde2b parser:: regangle now works with inf edges 2022-04-24 22:57:34 +02:00
Zeno Rogue
506a8b8f1b parser accepts inf 2022-04-24 22:57:34 +02:00
Zeno Rogue
592605c6e2 Arcmedge now accepts a^:b which means that a is repeated b times. Also the computations now work for real a, b 2022-04-24 22:57:34 +02:00
Zeno Rogue
7624dadb71 parser:: min and max functions 2022-04-24 22:57:33 +02:00
Zeno Rogue
be7e4ce70d tes:: preliminary implementation of (ultra)ideal vertices 2022-04-11 19:58:23 +02:00
Zeno Rogue
ec033786e1 arb:: removed legacy 2022-04-11 19:58:23 +02:00
Ammon Smith
aacea315f2 Add exception for handling of "Crossroads" in wiki links. 2022-02-12 17:57:34 -05:00
Zeno Rogue
cfcd8a5e57 fixed a bug in parsing unary - 2021-12-09 20:53:52 +01:00
Zeno Rogue
432499f903 eatchar in parser 2021-10-15 22:13:52 +02:00
Zeno Rogue
4902d2db8d fake_edgelength constant in parser 2021-08-08 18:29:49 +02:00
Zeno Rogue
ebfe0b6f48 exp_parser:: crash on unknown values starting with capital letters and _ 2021-07-31 15:14:31 +02:00