Changeset 0c0a0ce562ca418f3a9e9ec26fea21f52d16776c
- Timestamp:
- 10/21/07 12:08:38
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1192961318 +0200
- git-parent:
[b8b837d0ab884a1708c73e76d2afd7fcac933f83]
- git-author:
- Christopher Jung <bktheg@web.de> 1192961318 +0200
- Message:
Battle: save durch resetInactivity ersetzt
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r8f9e522 |
r0c0a0ce |
|
| 689 | 689 | |
|---|
| 690 | 690 | /** |
|---|
| 691 | | * Speichert die aktuellen Aenderungen in der Schlacht in der Datenbank |
|---|
| 692 | | * @param ignoreinakt Soll das Inaktivitaetsfeld nicht zurueckgesetzt werden (<code>true</code>)? |
|---|
| 693 | | */ |
|---|
| 694 | | @Deprecated |
|---|
| 695 | | public void save( boolean ignoreinakt ) { |
|---|
| 696 | | if( !ignoreinakt ) { |
|---|
| 697 | | this.inakt = 0; |
|---|
| 698 | | } |
|---|
| 699 | | } |
|---|
| | 691 | * Setzt den Inaktivitaetszaehler der Schlacht zurueck |
|---|
| | 692 | */ |
|---|
| | 693 | public void resetInactivity( ) { |
|---|
| | 694 | this.inakt = 0; |
|---|
| | 695 | } |
|---|
| | 696 | |
|---|
| 700 | 697 | |
|---|
| 701 | 698 | /** |
|---|
| r8f9e522 |
r0c0a0ce |
|
| 1408 | 1408 | } |
|---|
| 1409 | 1409 | |
|---|
| 1410 | | battle.save(false); |
|---|
| | 1410 | battle.resetInactivity(); |
|---|
| 1411 | 1411 | |
|---|
| 1412 | 1412 | this.ownShip.getShip().recalculateShipStatus(); |
|---|
| refe50c3 |
r0c0a0ce |
|
| 110 | 110 | battle.logenemy("]]></action>\n"); |
|---|
| 111 | 111 | |
|---|
| 112 | | battle.save(false); |
|---|
| | 112 | battle.resetInactivity(); |
|---|
| 113 | 113 | } |
|---|
| 114 | 114 | |
|---|
| refe50c3 |
r0c0a0ce |
|
| 94 | 94 | |
|---|
| 95 | 95 | battle.logenemy("]]></action>\n"); |
|---|
| 96 | | battle.save(false); |
|---|
| | 96 | battle.resetInactivity(); |
|---|
| 97 | 97 | |
|---|
| 98 | 98 | return RESULT_OK; |
|---|
| r283e6c7 |
r0c0a0ce |
|
| 51 | 51 | battle.addComMessage(battle.getEnemySide(), "++++ "+Common._titleNoFormat(user.getName())+" hat die Runde beendet ++++\n\n"); |
|---|
| 52 | 52 | |
|---|
| 53 | | battle.save(false); |
|---|
| | 53 | battle.resetInactivity(); |
|---|
| 54 | 54 | } |
|---|
| 55 | 55 | else { |
|---|
| … | … | |
| 60 | 60 | |
|---|
| 61 | 61 | battle.setReady(battle.getOwnSide(), true); |
|---|
| 62 | | battle.save(false); |
|---|
| | 62 | battle.resetInactivity(); |
|---|
| 63 | 63 | } |
|---|
| 64 | 64 | |
|---|
| rbbcbceb |
r0c0a0ce |
|
| 183 | 183 | |
|---|
| 184 | 184 | if( shipcount > 0 ) { |
|---|
| 185 | | battle.save(false); |
|---|
| | 185 | battle.resetInactivity(); |
|---|
| 186 | 186 | } |
|---|
| 187 | 187 | |
|---|
| ra9d0954 |
r0c0a0ce |
|
| 383 | 383 | ownShip.getShip().recalculateShipStatus(); |
|---|
| 384 | 384 | |
|---|
| 385 | | battle.save(false); |
|---|
| | 385 | battle.resetInactivity(); |
|---|
| 386 | 386 | |
|---|
| 387 | 387 | return RESULT_OK; |
|---|
| refe50c3 |
r0c0a0ce |
|
| 111 | 111 | |
|---|
| 112 | 112 | battle.logenemy("<action side=\""+battle.getOwnSide()+"\" time=\""+Common.time()+"\" tick=\""+context.get(ContextCommon.class).getTick()+"\"><![CDATA[\n"); |
|---|
| 113 | | battle.save(false); |
|---|
| | 113 | battle.resetInactivity(); |
|---|
| 114 | 114 | |
|---|
| 115 | 115 | battle.logme( ownShip.getName()+" fliegt zur Front\n" ); |
|---|
| reced142 |
r0c0a0ce |
|
| 97 | 97 | battle.setTakeCommand(battle.getOwnSide(), 0); |
|---|
| 98 | 98 | |
|---|
| 99 | | battle.save(false); |
|---|
| | 99 | battle.resetInactivity(); |
|---|
| 100 | 100 | |
|---|
| 101 | 101 | return RESULT_OK; |
|---|
| r0de5534 |
r0c0a0ce |
|
| 121 | 121 | battle.logenemy("]]></action>\n"); |
|---|
| 122 | 122 | |
|---|
| 123 | | battle.save(false); |
|---|
| | 123 | battle.resetInactivity(); |
|---|
| 124 | 124 | } |
|---|
| 125 | 125 | |
|---|
| refe50c3 |
r0c0a0ce |
|
| 102 | 102 | battle.logenemy("]]></action>\n"); |
|---|
| 103 | 103 | |
|---|
| 104 | | battle.save(false); |
|---|
| | 104 | battle.resetInactivity(); |
|---|
| 105 | 105 | |
|---|
| 106 | 106 | ownShip.getShip().recalculateShipStatus(); |
|---|
| refe50c3 |
r0c0a0ce |
|
| 135 | 135 | |
|---|
| 136 | 136 | battle.logenemy("<action side=\""+battle.getOwnSide()+"\" time=\""+Common.time()+"\" tick=\""+context.get(ContextCommon.class).getTick()+"\"><![CDATA[\n"); |
|---|
| 137 | | battle.save(false); |
|---|
| | 137 | battle.resetInactivity(); |
|---|
| 138 | 138 | |
|---|
| 139 | 139 | battle.logme( ownShip.getName()+" fliegt in die zweite Reihe\n" ); |
|---|
| refe50c3 |
r0c0a0ce |
|
| 139 | 139 | battle.logenemy("]]></action>\n"); |
|---|
| 140 | 140 | |
|---|
| 141 | | battle.save(false); |
|---|
| | 141 | battle.resetInactivity(); |
|---|
| 142 | 142 | |
|---|
| 143 | 143 | return RESULT_OK; |
|---|
| refe50c3 |
r0c0a0ce |
|
| 85 | 85 | } |
|---|
| 86 | 86 | |
|---|
| 87 | | battle.save(false); |
|---|
| | 87 | battle.resetInactivity(); |
|---|
| 88 | 88 | |
|---|
| 89 | 89 | return RESULT_OK; |
|---|
| r0975c0b |
r0c0a0ce |
|
| 60 | 60 | battle.setTakeCommand(battle.getOwnSide(), 0); |
|---|
| 61 | 61 | |
|---|
| 62 | | battle.save(false); |
|---|
| | 62 | battle.resetInactivity(); |
|---|
| 63 | 63 | |
|---|
| 64 | 64 | return RESULT_OK; |
|---|
| r409a328 |
r0c0a0ce |
|
| 70 | 70 | battle.setTakeCommand(battle.getOwnSide(), user.getID()); |
|---|
| 71 | 71 | |
|---|
| 72 | | battle.save(false); |
|---|
| | 72 | battle.resetInactivity(); |
|---|
| 73 | 73 | |
|---|
| 74 | 74 | battle.logme("Versuche das Kommando zu übernehmen...\n\nBitte Warten sie bis zum nächsten automatischen Rundenwechsel!"); |
|---|
| refe50c3 |
r0c0a0ce |
|
| 103 | 103 | battle.logenemy("]]></action>\n"); |
|---|
| 104 | 104 | |
|---|
| 105 | | battle.save(false); |
|---|
| | 105 | battle.resetInactivity(); |
|---|
| 106 | 106 | |
|---|
| 107 | 107 | ownShip.getShip().recalculateShipStatus(); |
|---|