Commit Graph

87 Commits

Author SHA1 Message Date
Bokros Bálint
7b531fecdd Refactored Player and PlayerBase ctors 2016-04-25 13:56:41 +02:00
Bokros Bálint
1a23abbe47 Added Tester class 2016-04-25 13:02:45 +02:00
82394cdca4 fixed parts of Dungeon.buildDungeon() fucked up by ericnerdo 2016-04-24 23:29:10 +02:00
Bokros Bálint
1ab13398bb reformatted code 2016-04-24 23:01:34 +02:00
d0d656452c implemented PlayerBase.pickZPM() (former pickItem()) callback method 2016-04-24 22:50:49 +02:00
ericnerdo
69a2384160 Wall - finished 2016-04-24 22:37:27 +02:00
ericnerdo
1c8566d96c Scale - finished 2016-04-24 22:36:54 +02:00
ericnerdo
fd64fd9165 Gate - finished 2016-04-24 22:36:20 +02:00
ericnerdo
cbd196532f Gap - finished 2016-04-24 22:28:09 +02:00
ericnerdo
a276a9e6e1 Field - finished 2016-04-24 22:27:30 +02:00
ericnerdo
924a5acc26 Tile refactored
Every setItemOnTile call were replaced.
2016-04-24 22:25:20 +02:00
ericnerdo
0a4b00aad3 Tile-attributes changed
Tile.itemOnTile no longer exists, it was replaced by boxStack and zpmOnTile. Getter-Setter methods were added.
2016-04-24 21:19:35 +02:00
4f81192938 added scale-gate references to dungeon files and their parser 2016-04-24 20:44:17 +02:00
Bokros Bálint
794378a919 Removed unneeded 'cicaprojekt.'-s from the project 2016-04-24 20:44:10 +02:00
Bokros Bálint
b32fec8c52 Stargate's isSpawned attribute is now properly initialized 2016-04-24 20:10:31 +02:00
Bokros Bálint
c6a0b984eb Added red and green Stargates 2016-04-24 20:09:53 +02:00
Bokros Bálint
708ad09c5e Cosmetic fixes in Stargate 2016-04-24 20:09:02 +02:00
ericnerdo
73c42991eb OnEntry/OnExit changed
The argument of these methods were changed from void to PlayerBase playerBase.
2016-04-24 19:49:27 +02:00
ericnerdo
64e6aec176 Implemented onExit in Wall 2016-04-24 18:38:39 +02:00
ericnerdo
6b11456b7a Abstract class finished
Method-calling texts were removed and methods were implemented.
2016-04-24 18:27:36 +02:00
muskenum
13a8adec82 Deleted echoes from all classes 2016-04-24 18:21:01 +02:00
e041576547 made cosmetic changes to most of the files: unified coding style 2016-04-23 17:15:19 +02:00
7eeeefa3e2 finished implementing map parser (Dungeon.buildDungeon())
the parser now sets up references between adjecent Tiles, however a team
consultation is needed regarding the Gates/Scales on the map. note that
the part of the parser that sets the references up is still untested.
2016-04-23 17:08:32 +02:00
e1d24d05dd started implementing map parser in Dungeon.buildDungeon()
also added an example map file: exampledungeon.dungeon. work to be done:
implement rest of the parser, so it sets up cross references between
Tiles correctly.
2016-04-23 15:07:48 +02:00
98d888b696 fixed the order of output identing in Wall.spawnStargate() 2016-04-23 13:35:53 +02:00
9d5be2a0db changed ident to 4spaces instead of tabs in Scale, also made cosmetic changes 2016-04-23 13:28:38 +02:00
1f2903272e removed terrible abusion of underscore paradigm in Scale ctor. 2016-04-23 13:24:26 +02:00
f22e470d4d Player class: changed ident to glorious 4spaces instead of tab, fixed order in methods 2016-04-23 13:19:55 +02:00
d60400b5f4 minor refactor regarding Box.weight(), weight is now also an attribute 2016-04-23 13:15:30 +02:00
ericnerdo
19aad35791 Measurable interface implemented
Method int weight() overridden, the return value is 0.
2016-04-22 10:43:45 +02:00
ericnerdo
d1d6e8b725 Boolean isOpen fixed
"return open" was in the middle of the code, I moved it to the end of it. Methods onEntry, onExit are still unfinished.
2016-04-22 10:38:18 +02:00
ericnerdo
6868baec84 Weight of Box finished
After implementing the Measurable interface, the constant weight of Boxes in the int weight method is 5. Attribute int weight, methods set- and getWeight were removed.
2016-04-22 10:18:31 +02:00
muskenum
a30cb01cd0 Ready Gate except onEntry and onExit. 2016-04-21 23:39:00 +02:00
muskenum
d735d72a78 Added weight to Box, not finished 2016-04-21 23:32:14 +02:00
muskenum
a83a849ac0 Added weight to Box, + getter/setter 2016-04-21 23:01:20 +02:00
muskenum
ab02de6e86 Finished Gate class, except onEntry and onExit. 2016-04-21 21:57:45 +02:00
Bokros Bálint
b8b79db028 Added threshold initialization to ctor 2016-04-19 11:46:59 +02:00
Bokros Bálint
f45ed417ae Refactored ONeill into PlayerBase and Player
Change was needed because of updated specification.
2016-04-19 11:46:06 +02:00
Bokros Bálint
db54dcdd1d Implemented stack in Scale
Implemented a stack of items on the Scale, instead of one item, change was needed due to the modified specification
2016-04-19 11:31:56 +02:00
Bokros Bálint
7f98d7ff3d Pickable now extends Measurable 2016-04-19 11:01:26 +02:00
Bokros Bálint
78b3fb0986 Created Measurable interface 2016-04-19 11:01:09 +02:00
muskenum
cfb630ff18 Little changing in the echoes of Wall
Megcseréltem a két részt, mert a metódus törzse az echo után jött csak.
2016-04-03 23:14:59 +02:00
68a6c44ae5 red and green Stargate instances now appear on the class diagram 2016-04-03 21:08:02 +02:00
943fe482fb class diagram now matches modifications made to the project 2016-04-03 20:34:07 +02:00
764f2022c7 added a class diagram to the project root 2016-04-03 17:56:01 +02:00
c19f437c21 fixed infinite recursion in Field.spawnStargate() 2016-04-01 17:59:53 +02:00
Bokros Bálint
a06feaa0ca attempt to fix stargate spawning
still gives stackoverflow, as there's no stop condition
2016-04-01 17:59:53 +02:00
Bokros Bálint
5ece8b8f27 Stargate isn't initialized with nullpointers now 2016-04-01 17:59:53 +02:00
07d7934524 fixed notation in Menu (Doboz lerakása helyett felvétele volt 2x) 2016-04-01 17:59:53 +02:00
ddffc0f655 fixed nullptrexception on ONeill.boxLift() & ONeill.move()
static attribute Field.testfield now initializes properly
2016-04-01 17:59:53 +02:00