| 345 | | |
|---|
| 346 | | |
|---|
| | 343 | |
|---|
| | 344 | /** |
|---|
| | 345 | * Setzt die Ausdehnung des Flaechenschadens |
|---|
| | 346 | * @param areaDamage Die Areadamage |
|---|
| | 347 | */ |
|---|
| | 348 | public void setAreaDamage(int areaDamage) { |
|---|
| | 349 | this.areaDamage = areaDamage; |
|---|
| | 350 | } |
|---|
| | 351 | |
|---|
| | 352 | /** |
|---|
| | 353 | * Setzt die Baukosten pro Einheit |
|---|
| | 354 | * @param buildCosts Die Kosten |
|---|
| | 355 | */ |
|---|
| | 356 | public void setBuildCosts(Cargo buildCosts) { |
|---|
| | 357 | this.buildCosts = buildCosts; |
|---|
| | 358 | } |
|---|
| | 359 | |
|---|
| | 360 | /** |
|---|
| | 361 | * Setzt den Schaden |
|---|
| | 362 | * @param damage Der Schaden |
|---|
| | 363 | */ |
|---|
| | 364 | public void setDamage(int damage) { |
|---|
| | 365 | this.damage = damage; |
|---|
| | 366 | } |
|---|
| | 367 | |
|---|
| | 368 | /** |
|---|
| | 369 | * Setzt die beim Bau belegte Produktionskapazitaet |
|---|
| | 370 | * @param dauer Die notwendige Kapazitaet |
|---|
| | 371 | */ |
|---|
| | 372 | public void setDauer(BigDecimal dauer) { |
|---|
| | 373 | this.dauer = dauer; |
|---|
| | 374 | } |
|---|
| | 375 | |
|---|
| | 376 | /** |
|---|
| | 377 | * Setzt die Beschreibung |
|---|
| | 378 | * @param description Die Beschreibung |
|---|
| | 379 | */ |
|---|
| | 380 | public void setDescription(String description) { |
|---|
| | 381 | this.description = description; |
|---|
| | 382 | } |
|---|
| | 383 | |
|---|
| | 384 | /** |
|---|
| | 385 | * Setzt den Faktor fuer die Zerstoerbarkeit vor dem Aufschlagen |
|---|
| | 386 | * @param destroyable Die Zerstoerbarkeit |
|---|
| | 387 | */ |
|---|
| | 388 | public void setDestroyable(double destroyable) |
|---|
| | 389 | { |
|---|
| | 390 | this.destroyable = destroyable; |
|---|
| | 391 | } |
|---|
| | 392 | |
|---|
| | 393 | /** |
|---|
| | 394 | * Setzt die Flags der Munition |
|---|
| | 395 | * @param flags Die Flags |
|---|
| | 396 | */ |
|---|
| | 397 | public void setFlags(int flags) { |
|---|
| | 398 | this.flags = flags; |
|---|
| | 399 | } |
|---|
| | 400 | |
|---|
| | 401 | /** |
|---|
| | 402 | * Setzt den Namen der Munition |
|---|
| | 403 | * @param name Der Name |
|---|
| | 404 | */ |
|---|
| | 405 | public void setName(String name) { |
|---|
| | 406 | this.name = name; |
|---|
| | 407 | } |
|---|
| | 408 | |
|---|
| | 409 | /** |
|---|
| | 410 | * Setzt den Pfad zum Bild der Munition |
|---|
| | 411 | * @param picture Der Pfad |
|---|
| | 412 | */ |
|---|
| | 413 | public void setPicture(String picture) { |
|---|
| | 414 | this.picture = picture; |
|---|
| | 415 | } |
|---|
| | 416 | |
|---|
| | 417 | /** |
|---|
| | 418 | * Setzt die Munition, die durch diese Munition ersetzt wird. |
|---|
| | 419 | * Falls diese Munition keine andere ersetzt ist der Wert <code>null</code> |
|---|
| | 420 | * @param replaces Die Munition oder <code>null</code> |
|---|
| | 421 | */ |
|---|
| | 422 | public void setReplaces(Ammo replaces) { |
|---|
| | 423 | this.replaces = replaces; |
|---|
| | 424 | } |
|---|
| | 425 | |
|---|
| | 426 | /** |
|---|
| | 427 | * Setzt die erste benoetigte Forschung |
|---|
| | 428 | * @param res1 Die Forschung |
|---|
| | 429 | */ |
|---|
| | 430 | public void setRes1(int res1) { |
|---|
| | 431 | this.res1 = res1; |
|---|
| | 432 | } |
|---|
| | 433 | |
|---|
| | 434 | /** |
|---|
| | 435 | * Setzt die zweite benoetigte Forschung |
|---|
| | 436 | * @param res2 Die Forschung |
|---|
| | 437 | */ |
|---|
| | 438 | public void setRes2(int res2) { |
|---|
| | 439 | this.res2 = res2; |
|---|
| | 440 | } |
|---|
| | 441 | |
|---|
| | 442 | /** |
|---|
| | 443 | * Setzt die dritte benoetigte Forschung |
|---|
| | 444 | * @param res3 Die Forschung |
|---|
| | 445 | */ |
|---|
| | 446 | public void setRes3(int res3) { |
|---|
| | 447 | this.res3 = res3; |
|---|
| | 448 | } |
|---|
| | 449 | |
|---|
| | 450 | /** |
|---|
| | 451 | * Setzt den Schaden bei Schilden |
|---|
| | 452 | * @param shieldDamage Der Schaden |
|---|
| | 453 | */ |
|---|
| | 454 | public void setShieldDamage(int shieldDamage) { |
|---|
| | 455 | this.shieldDamage = shieldDamage; |
|---|
| | 456 | } |
|---|
| | 457 | |
|---|
| | 458 | /** |
|---|
| | 459 | * Setzt die Anzahl an Geschossen pro abgefeuertem Schuss |
|---|
| | 460 | * @param shotsPerShot Die Anzahl |
|---|
| | 461 | */ |
|---|
| | 462 | public void setShotsPerShot(int shotsPerShot) { |
|---|
| | 463 | this.shotsPerShot = shotsPerShot; |
|---|
| | 464 | } |
|---|
| | 465 | |
|---|
| | 466 | /** |
|---|
| | 467 | * Setzt die Treffer-WS gegen kleine Schiffe |
|---|
| | 468 | * @param smallTrefferWS Die Treffer-WS |
|---|
| | 469 | */ |
|---|
| | 470 | public void setSmallTrefferWS(int smallTrefferWS) { |
|---|
| | 471 | this.smallTrefferWS = smallTrefferWS; |
|---|
| | 472 | } |
|---|
| | 473 | |
|---|
| | 474 | /** |
|---|
| | 475 | * Setzt den Schaden an Subsystemen |
|---|
| | 476 | * @param subDamage Der Schaden |
|---|
| | 477 | */ |
|---|
| | 478 | public void setSubDamage(int subDamage) { |
|---|
| | 479 | this.subDamage = subDamage; |
|---|
| | 480 | } |
|---|
| | 481 | |
|---|
| | 482 | /** |
|---|
| | 483 | * Setzt die Treffer-WS auf Subsystemee |
|---|
| | 484 | * @param subWS Die Treffer-WS |
|---|
| | 485 | */ |
|---|
| | 486 | public void setSubWS(int subWS) { |
|---|
| | 487 | this.subWS = subWS; |
|---|
| | 488 | } |
|---|
| | 489 | |
|---|
| | 490 | /** |
|---|
| | 491 | * Setzt die Treffer-WS gegen anfliegende Torpedos |
|---|
| | 492 | * @param torpTrefferWS Die Treffer-WS |
|---|
| | 493 | */ |
|---|
| | 494 | public void setTorpTrefferWS(int torpTrefferWS) { |
|---|
| | 495 | this.torpTrefferWS = torpTrefferWS; |
|---|
| | 496 | } |
|---|
| | 497 | |
|---|
| | 498 | /** |
|---|
| | 499 | * Setzt die Treffer-WS gegen normale Schiffe |
|---|
| | 500 | * @param trefferWS Die Treffer-WS |
|---|
| | 501 | */ |
|---|
| | 502 | public void setTrefferWS(int trefferWS) { |
|---|
| | 503 | this.trefferWS = trefferWS; |
|---|
| | 504 | } |
|---|
| | 505 | |
|---|
| | 506 | /** |
|---|
| | 507 | * Setzt den Slot mit dem diese Munition verschossen werden kann |
|---|
| | 508 | * @param type Der Slot |
|---|
| | 509 | */ |
|---|
| | 510 | public void setType(String type) { |
|---|
| | 511 | this.type = type; |
|---|
| | 512 | } |
|---|