1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-14 17:34:47 +00:00
Commit Graph

114 Commits

Author SHA1 Message Date
Zeno Rogue
5a73510c4f added some guards for MAXMDIM >= 4 and CAP_SOLV 2021-03-30 11:27:48 +02:00
Zeno Rogue
c57566f9da highlights in special modes 2021-02-07 22:55:11 +01:00
Arthur O'Dwyer
d163a01b8a Remove USE_UNORDERED_MAP because it has bit-rotted.
Trying to compile with `-DUSE_UNORDERED_MAP` produces lots of compiler errors
like these, because of missing `std::hash` specializations.
Also, `#define unordered_map map` is just evil!

```
./nonisotropic.cpp:875:36: note: in instantiation of template class 'std::__1::unordered_map<hr::nilv::mvec, hr::heptagon *,
      std::__1::hash<hr::nilv::mvec>, std::__1::equal_to<hr::nilv::mvec>, std::__1::allocator<std::__1::pair<const hr::nilv::mvec, hr::heptagon
      *> > >' requested here
    unordered_map<mvec, heptagon*> at;
                                   ^

./nonisotropic.cpp:239:58: note: in instantiation of template class 'std::__1::unordered_map<std::__1::pair<hr::heptagon *, hr::heptagon *>,
      hr::heptagon *, std::__1::hash<std::__1::pair<hr::heptagon *, hr::heptagon *> >, std::__1::equal_to<std::__1::pair<hr::heptagon *,
      hr::heptagon *> >, std::__1::allocator<std::__1::pair<const std::__1::pair<hr::heptagon *, hr::heptagon *>, hr::heptagon *> > >'
      requested here
    unordered_map<pair<heptagon*, heptagon*>, heptagon*> at;
                                                         ^

./nonisotropic.cpp:457:49: error: no matching member function for call to 'iadj'
      while(h1->distance < h2->distance) back = iadj(h2, down) * back, h2 = h2->cmove(down);
                                                ^~~~
cell.cpp:42:15: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  transmatrix iadj(heptagon *h, int d) {
              ^
cell.cpp:41:22: note: candidate function not viable: no known conversion from 'hr::sn::hrmap_solnih' to 'hr::hrmap' for object argument
  struct transmatrix iadj(cell *c, int i) { cell *c1 = c->cmove(i); return adj(c1, c->c.spin(i)); }
                     ^
```
2020-10-19 13:15:29 -04:00
Zeno Rogue
d64c5e338c extra guards 2020-10-15 16:33:52 +02:00
Zeno Rogue
67595a4ed3 redone hrmap::draw() function to keep DRY 2020-07-28 22:06:14 +02:00
Zeno Rogue
82f32607e6 MAJOR CHANGE: replaced (transmatrix,band_shift) pair with shiftmatrix 2020-07-28 22:06:14 +02:00
Zeno Rogue
8f2bde4434 crystal:: restricted view_coordinates 2020-07-08 16:00:33 +02:00
Zeno Rogue
89585f004b fixed some guards (in progress) 2020-07-03 14:42:33 +02:00
Zeno Rogue
aa2cf6dbf5 fixed a crash when 'drawing underlying tree' in crystal3 2020-05-29 01:58:15 +02:00
Zeno Rogue
0e8a5f6065 patterns in Crystal bitruncated {6,4}; also fixes graphics 2020-05-29 01:53:08 +02:00
Zeno Rogue
1b96658a05 fake curvature 2020-05-15 11:46:26 +02:00
Zeno Rogue
c9650cda2c crystal:: changed condition from cheater to allowIncreasedSight 2020-05-01 10:46:38 +02:00
Zeno Rogue
a024626593 export crystal_period 2020-05-01 10:42:28 +02:00
Zeno Rogue
7e58a718e2 fixup: flat to native in crystal 2020-04-15 01:42:46 +02:00
Zeno Rogue
233adddd36 moved reg3 values to cgi 2020-04-05 10:58:56 +02:00
Zeno Rogue
100b8f3534 cellrotations are now structs, and include inverses 2020-01-28 17:58:55 +01:00
Zeno Rogue
c5f1eb27c0 crystal:: in relative_matrix, h2==h1 handled 2020-01-18 17:15:29 +01:00
Zeno Rogue
2271a67506 removed the MAX_EDGE limit 2020-01-18 16:03:32 +01:00
Zeno Rogue
31c13bcb57 colorize for gSeifertCover 2020-01-16 17:13:47 +01:00
Zeno Rogue
8f1a65c9d7 operators - and * in crystal::coord 2020-01-06 20:36:42 +01:00
Zeno Rogue
6a1911ef01 crystal:: ctable is now C array 2020-01-03 02:37:10 +01:00
Zeno Rogue
17c4e82d55 Crystal torus 2020-01-02 17:15:38 +01:00
Zeno Rogue
f6d90db750 crystal::colorize: added '@', changed colors in '=' 2020-01-02 16:53:59 +01:00
Zeno Rogue
b4b325e009 6D Crystal, 535 and 536 2020-01-02 16:50:01 +01:00
Zeno Rogue
e92eda4bad crystal:: export told 2019-12-23 20:50:51 +01:00
Zeno Rogue
7dc57d587a ldcoord as friends 2019-12-23 20:50:42 +01:00
Zeno Rogue
7f09bb6259 replaced macro VALENCE with function valence() 2019-12-14 12:31:20 +01:00
Zeno Rogue
e8a39e6663 replaced euclid3:: with euc:: 2019-12-08 11:01:28 +01:00
Zeno Rogue
99ab57086b in_wallopt(): auto in racing 2019-12-06 11:45:19 +01:00
Zeno Rogue
56e575369b missing override markers 2019-11-30 18:48:44 +01:00
Zeno Rogue
b904fdde1e removed the difference between euclid3::coord and array<int,3> -- euclid3::coord is now array<int,3> 2019-11-30 18:06:48 +01:00
Zeno Rogue
1cba452f07 rewritten the Euclidean geometry 2019-11-30 18:06:47 +01:00
Zeno Rogue
7e8ede4bd6 relative_matrix and adj changed 2019-11-30 18:05:23 +01:00
Zeno Rogue
e898f0ccf0 crystal:: fixed Crystal344 2019-11-16 01:40:27 +01:00
Zeno Rogue
e5e9e88da2 fixed error reported by clang 2019-11-15 14:54:34 +01:00
Zeno Rogue
ef9e2236ba viewctr is no more... major reduction of redundancy/complexity 2019-11-14 00:26:50 +01:00
Zeno Rogue
43bf7c5cfe fixed MAXMDIM guards 2019-11-03 14:19:11 +01:00
Zeno Rogue
2daad158ca fixed selecting gCrystal344 2019-10-27 00:42:18 +02:00
Zeno Rogue
72e6859dd5 Penrose staircase pattern in Nil, and diagonal pattern in Crystal 2019-10-25 12:47:03 +02:00
Zeno Rogue
85a08d205d refactored celldraw 2019-10-25 12:44:41 +02:00
Zeno Rogue
ea65beb5c0 crystal::get_dim() typo fixup 2019-10-21 23:00:04 +02:00
Zeno Rogue
423a1fae39 crystal::get_dim() 2019-10-21 22:44:18 +02:00
Zeno Rogue
51e1fe06b3 in crystal3, quick relative_matrix for adjacent 2019-10-21 22:35:04 +02:00
Zeno Rogue
bf691001ab added missing guards 2019-10-12 19:09:53 +02:00
Zeno Rogue
58c1c04697 fixed uninitialized variable 2019-10-12 14:42:57 +02:00
Zeno Rogue
d7cb0b1bd2 fixed some compiler issues 2019-10-12 14:04:46 +02:00
Zeno Rogue
edfb8084cf debug removed 2019-10-12 13:48:04 +02:00
Zeno Rogue
ddc0fa538e fixed view_coordinates and compass in Crystal334 2019-10-12 13:12:47 +02:00
Zeno Rogue
48b1773f0d new patterns for 4D Crystal 2019-10-12 13:12:15 +02:00
Zeno Rogue
d2b3df57c6 crystal {3,4,4} 2019-10-12 11:24:29 +02:00