Changeset 1c392bc2b12a19c7061554ecb9b79c3f9b6d9e2a
- Timestamp:
- 11/19/06 10:41:06
(2 years ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1163929266 +0100
- git-parent:
[9149c87612d9ff7b9fcd37fab970ea417ce07a20]
- git-author:
- Christopher Jung <bktheg@web.de> 1163929266 +0100
- Message:
getResourceMass implementiert
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rae09dfe |
r1c392bc |
|
| 1145 | 1145 | * @return Die Masse, die die Resource in der Menge verbraucht |
|---|
| 1146 | 1146 | */ |
|---|
| 1147 | | public static int getResourceMass( ResourceID resourceid, int count ) { |
|---|
| 1148 | | Common.stub(); |
|---|
| 1149 | | return 0; |
|---|
| | 1147 | public static long getResourceMass( ResourceID resourceid, long count ) { |
|---|
| | 1148 | long tmp = 0; |
|---|
| | 1149 | |
|---|
| | 1150 | if( resourceid.isItem() ) { |
|---|
| | 1151 | if( Items.get().item(resourceid.getItemID()) != null ) { |
|---|
| | 1152 | tmp = count * Items.get().item(resourceid.getItemID()).getCargo(); |
|---|
| | 1153 | } |
|---|
| | 1154 | } |
|---|
| | 1155 | else { |
|---|
| | 1156 | tmp = count; |
|---|
| | 1157 | } |
|---|
| | 1158 | |
|---|
| | 1159 | return tmp; |
|---|
| 1150 | 1160 | } |
|---|
| 1151 | 1161 | |
|---|