100 Commits
Author SHA1 Message Date
Dan Crosby f0e7679be7 clean up some enums 2017-10-21 11:48:03 -07:00
Dan Crosby 91d7936169 removing some unneeded stuff 2017-10-21 10:24:16 -07:00
Dan Crosby e1e49332df remove gtest from repo 2017-10-21 10:14:39 -07:00
Dan Crosby f7083f6639 some small rules tweaks 2017-10-21 10:05:03 -07:00
Dan Crosby b6ad3cabdb cleanup of AI turns 2017-10-20 16:35:07 -07:00
Dan Crosby 22f9724c86 cleanup unused deps in ShardokGameController 2017-10-19 06:32:37 -07:00
Dan Crosby 35826d3536 AI client working(?) 2017-10-18 22:13:02 -07:00
Dan Crosby 3594dd4a74 Local player working with LocalInterface 2017-10-18 21:31:04 -07:00
Dan Crosby 72000ba9eb rename InterfaceManager to ShardokGameController 2017-10-18 18:27:15 -07:00
Dan Crosby 99f1a87c30 cleanup search for crasher 2017-10-18 05:48:40 -07:00
Dan Crosby c108c9ff95 sounds + did I get the crasher? 2017-10-17 22:00:57 -07:00
Dan Crosby d705a59ed1 refactoring and minor fixes 2017-10-17 06:25:12 -07:00
Dan Crosby fd53b41f51 put thread count in game setup 2017-10-06 07:04:54 -07:00
Dan Crosby f9db6f28f3 defender got to command attacker's heroes 2017-10-03 19:55:28 -07:00
Dan Crosby f5443f5a5b fixed another hero nullptr 2017-10-03 14:47:21 -07:00
Dan Crosby 009349327d fixed charge action after enemy moves adjacent 2017-10-03 14:42:47 -07:00
Dan Crosby 0749499e7d fixed a hero nullptr 2017-10-03 13:21:35 -07:00
Dan Crosby 0760f9317e Select composite actions 2017-10-03 09:40:56 -07:00
Dan Crosby c26f9d3f2e Some hero and battalion cleanup done during attempt at deduping 2017-10-02 16:51:59 -07:00
Dan Crosby d02307ce9a update TODO 2017-10-02 16:44:44 -07:00
Dan Crosby d791af3bda Created composite moves for TreeNode, though currently only one move each 2017-10-01 14:56:03 -07:00
Dan Crosby 5c9e150f66 micro optimization to call PerformUnchecked 2017-10-01 13:21:04 -07:00
Dan Crosby 70a21e383c flanking now affects damage, and reduced it :P 2017-10-01 12:00:45 -07:00
Dan Crosby 6c7fcb7804 Use charge in call to defender->TakeDamage 2017-10-01 11:48:51 -07:00
Dan Crosby d447d3e583 Calculates flank and rear attacks (doesn't yet use them) 2017-10-01 11:45:00 -07:00
Dan Crosby 97d0f70793 use of scratchpad in PerformMove 2017-10-01 10:22:20 -07:00
Dan Crosby ef2e7b9320 Scratchpad for vector reuse 2017-09-30 22:08:38 -07:00
Dan Crosby bea9cd92a1 fixed a nullptr and the logging 2017-09-30 16:07:13 -07:00
Dan Crosby 8af6116eb1 scratchpad 2017-09-30 16:02:06 -07:00
Dan Crosby a3576601e4 fixed a couple of nullptrs 2017-09-30 15:06:39 -07:00
Dan Crosby 41a1fa0b45 Charging working 2017-09-30 14:59:46 -07:00
Dan Crosby 025a6978f6 Charge actions, not yet in UX 2017-09-30 13:59:13 -07:00
Dan Crosby 5382360395 basic ZoC. 2017-09-30 12:27:53 -07:00
Dan Crosby c646fbfae9 logging fixes 2017-09-30 11:18:08 -07:00
Dan Crosby 7ba87d90ee Tracks whether heroes started adjacent enemy 2017-09-29 22:02:15 -07:00
Dan Crosby ec15be0ca8 Weight attacker toward moving to critical tiles 2017-09-29 18:57:55 -07:00
Dan Crosby 2104b3b3f1 ATTACKER GOES NORTHWEST 2017-09-28 21:17:44 -07:00
Dan Crosby e38dfbe68a directionTo when right on the line 2017-09-28 20:59:52 -07:00
Dan Crosby 960dd5dddb wait and rest actions in UX 2017-09-28 20:39:05 -07:00
Dan Crosby 2ca36cf90a IsLegal test for archery with mountains 2017-09-28 20:12:27 -07:00
Dan Crosby f1791cb635 Removed Rest as a separate action 2017-09-28 19:59:27 -07:00
Dan Crosby 3b443ea93a can't fire over mountains 2017-09-28 19:51:50 -07:00
Dan Crosby 860f44db71 Fix tests after changes to pass in vectors 2017-09-26 18:50:27 -07:00
Dan Crosby 8417b81276 logging fixes 2017-09-25 21:56:33 -07:00
Dan Crosby 5cb8655024 fix run() threading issue (still a crasher) 2017-09-25 07:26:29 -07:00
Dan Crosby d4974f4f60 more micro optimizations 2017-09-24 21:31:07 -07:00
Dan Crosby a3fd460c95 micro-optimization to vector<AdjacentTile> allocation 2017-09-24 18:50:29 -07:00
Dan Crosby 44b71d75a9 fixed duplication of heroes? 2017-09-24 15:56:38 -07:00
Dan Crosby 3e8db4e2f7 moving & removing heroes 2017-09-24 15:18:47 -07:00
Dan Crosby e0a0c7d0fe Create new heroes 2017-09-24 14:14:44 -07:00
Dan Crosby 98a1f9e2a1 remove bindings 2017-09-24 11:21:32 -07:00
Dan Crosby f60b010ecc minor cleanup 2017-09-24 09:25:46 -07:00
Dan Crosby fb8ba3701c some small optimizations 2017-09-23 17:55:24 -07:00
Dan Crosby 685d07f6bc fixed AI? 2017-09-23 16:03:05 -07:00
Dan Crosby 42a6588557 binding preferences, some AI fixes 2017-09-23 15:36:52 -07:00
Dan Crosby 274654a3db loading from editor save works! 2017-09-22 21:23:39 -07:00
Dan Crosby 7c67e8b0c3 saving & loading working. Next, heroes. 2017-09-22 21:03:00 -07:00
Dan Crosby d1e3d7c243 fixed (one?) Array in Map bug 2017-09-22 17:59:21 -07:00
Dan Crosby 26af3dd840 fixed encoding of array inside map 2017-09-22 06:54:33 -07:00
Dan Crosby cbbb83e2d7 Map editing, but not saving properly 2017-09-21 21:20:46 -07:00
Dan Crosby 96eda401b1 Fix posting updates by AI; don't store MonteCarloTreeNodes during Simulation 2017-09-21 06:50:29 -07:00
Dan Crosby 53148f20f9 update everyone at player change 2017-09-18 22:07:03 -07:00
Dan Crosby 1a74248084 fix a null pointer in engine copy 2017-09-17 21:17:03 -07:00
Dan Crosby 769fc10598 fixed tests after refactor 2017-09-17 21:09:08 -07:00
Dan Crosby 904ded20b3 Got rid of Hero and Battalion Concrete structs 2017-09-17 20:45:16 -07:00
Dan Crosby d4c2ccc7ac Change BattalionSPtr to unique_ptr 2017-09-17 20:42:12 -07:00
Dan Crosby 06a7203410 Replace HeroSPtr with unique_ptr 2017-09-17 19:14:44 -07:00
Dan Crosby 052f7ed510 remove last HeroSPtr reference from ShardokEngine API 2017-09-17 18:31:21 -07:00
Dan Crosby 6a28302b51 fix Swift tests 2017-09-17 18:24:13 -07:00
Dan Crosby 72150240d2 minor cleanup 2017-09-14 07:16:20 -07:00
Dan Crosby 87531e486f fixed tests after ShardokPlayer refactor 2017-09-13 15:15:43 -07:00
Dan Crosby 68aeb398bd ShardokPlayer is RIGHT OUT 2017-09-13 14:11:41 -07:00
Dan Crosby 3249e21c93 Create game from file 2017-09-13 09:33:29 -07:00
Dan Crosby 0bc06842ff Replace some ObjcCppUtils functions with extensions 2017-09-13 07:44:20 -07:00
Dan Crosby 2c69422f6b create Unchecked perform action for AI 2017-09-13 07:15:12 -07:00
Dan Crosby 6327c76f18 reduce size of TreeNode a bit 2017-09-11 18:05:56 -07:00
Dan Crosby 90f32c7894 min agility for archery 2017-09-10 20:14:30 -07:00
Dan Crosby 07b1120412 archery volley count working 2017-09-10 20:13:04 -07:00
Dan Crosby f57e46bf07 archery damage 2017-09-10 19:49:49 -07:00
Dan Crosby d822e19f33 archery action cost 2017-09-10 19:34:30 -07:00
Dan Crosby 91b170960b Archery attacks passed through from client (no display) 2017-09-10 18:46:39 -07:00
Dan Crosby ac7cefa1fb archery attack now present in Actions (doesn't do anything, not presented as possible action) 2017-09-10 18:04:11 -07:00
Dan Crosby fbbe8998c0 deleting some commented-out code 2017-09-10 17:19:28 -07:00
Dan Crosby e9a62269d2 Streamline ShardokActions into ShardokActionPerformer 2017-09-10 17:11:59 -07:00
Dan Crosby 6325db3db7 Resting fixes, more CoordsAreAdjacent improvements 2017-09-10 13:09:36 -07:00
Dan Crosby 2a7ec402a2 fix tests after all the refactoring; faster CoordsAreAdjacent 2017-09-10 12:48:04 -07:00
Dan Crosby 9093fdcc70 rest action piped through 2017-09-10 12:02:47 -07:00
Dan Crosby d837543b0c ending turn rests all heroes 2017-09-10 11:43:02 -07:00
Dan Crosby 3f5adc3b4a Added rest action -- need to add it to client and make end turn automatically do it for everyone 2017-09-10 09:57:21 -07:00
Dan Crosby e5d69ee356 Spend vigor when moving, use the shared pointer instead of making new heroes all the time 2017-09-10 09:24:46 -07:00
Dan Crosby b20cd76446 memory & perf improvements 2017-09-10 08:56:06 -07:00
Dan Crosby 25cdebb0da changed subclasses to templates (2+x speed) 2017-09-09 10:46:53 -07:00
Dan Crosby 5d1b2e09a9 cleanup commit before replacing subclasses with templates 2017-09-09 08:43:24 -07:00
Dan Crosby 1dd1a8a7c0 fixed engine memory leak 2017-09-08 17:29:10 -07:00
Dan Crosby 522fe7ff43 Removed ShardokPlayer subclasses 2017-09-08 06:44:28 -07:00
Dan Crosby 7364c66715 some fixes to updating etc 2017-09-07 20:59:52 -07:00
Dan Crosby b3bf4aad6d basic back-and-forth working 2017-09-07 20:09:39 -07:00
Dan Crosby 3061efbc86 changed HeroId to 32-bit 2017-09-07 07:33:26 -07:00
Dan Crosby 9d32155cfe a few memory improvements 2017-09-06 06:42:12 -07:00
Dan Crosby b9014e1b94 a bunch of perf fixes 2017-09-05 19:31:47 -07:00