1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-14 09:24:48 +00:00
Commit Graph

151 Commits

Author SHA1 Message Date
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
Arthur O'Dwyer
d606c3183b Replace hr::find_or_null with hr::at_or_null. 2021-07-18 17:43:03 -04:00
Arthur O'Dwyer
74052ef2bf Replace IF_KEY_EXISTS with a plain old function, not a macro. 2021-07-18 17:21:38 -04:00
Zeno Rogue
e567fa2033 IF_KEY_EXISTS used in util.cpp 2021-07-18 12:19:49 +02:00
Zeno Rogue
e9de3ac7d5 Great Walls in bch 2021-07-11 15:07:40 +02:00
Jesse Ruderman
ff7be8d4e0 Add wiki links to land help 2021-07-03 19:38:20 -07:00
Zeno Rogue
5d30ec70d3 increased the z-buffer to 10 MB 2021-05-23 16:00:50 +02:00
Zeno Rogue
b470af5d89 added ignore to prevent warnings 2021-04-07 20:00:49 +02:00
Zeno Rogue
d206656724 rogueviz:: added heatx 2021-04-07 18:15:58 +02:00
Zeno Rogue
b622a7ac42 added file_exists function 2021-04-07 18:13:45 +02:00
Zeno Rogue
953e17722d throw hr_exceptions not strings 2021-03-24 20:25:44 +01:00
Zeno Rogue
95d4e942e2 removed obsolete profiling 2021-03-09 10:45:44 +01:00
Zeno Rogue
dc20dfe648 moved replace_str to util 2021-02-07 22:55:10 +01:00
Zeno Rogue
8c5c8f2c19 util:: parseint function 2021-02-07 22:55:10 +01:00
Zeno Rogue
ea5ee7eefd fixed a crashbug when entering ../ 2021-02-01 13:42:24 +01:00
Zeno Rogue
5bd7dea231 improved help for editable values 2021-02-01 13:42:12 +01:00
Zeno Rogue
298c051beb saver enums 2021-02-01 01:35:34 +01:00
Zeno Rogue
e881f3b8cb parser:: edgelen value 2020-10-15 16:34:07 +02:00
Zeno Rogue
d64c5e338c extra guards 2020-10-15 16:33:52 +02:00
Zeno Rogue
351eda2b5d generalized PSL to ~SL (discrepancies still appear) 2020-07-24 02:30:50 +02:00