#include <ThingTemplate.h>
Inherits Overridable.
Protected Member Functions | |
| Int | getBuildCost () const |
| Real | getBuildTime () const |
| const PerUnitSoundMap * | getAllPerUnitSounds (void) const |
| void | validateAudio () |
| const AudioEventRTS * | getAudio (ThingTemplateAudioType t) const |
| Bool | hasAudio (ThingTemplateAudioType t) const |
| Bool | removeModuleInfo (const AsciiString &moduleToRemove, AsciiString &clearedModuleNameOut) |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Static Protected Member Functions | |
| static void | parseArmorTemplateSet (INI *ini, void *instance, void *store, const void *) |
| static void | parseWeaponTemplateSet (INI *ini, void *instance, void *store, const void *) |
| static void | parsePrerequisites (INI *ini, void *instance, void *, const void *) |
| static void | parseModuleName (INI *ini, void *instance, void *, const void *userData) |
| static void | parseIntList (INI *ini, void *instance, void *store, const void *userData) |
| static void | parsePerUnitSounds (INI *ini, void *instance, void *store, const void *userData) |
| static void | parsePerUnitFX (INI *ini, void *instance, void *store, const void *userData) |
| static void | parseAddModule (INI *ini, void *instance, void *store, const void *userData) |
| static void | parseRemoveModule (INI *ini, void *instance, void *store, const void *userData) |
| static void | parseReplaceModule (INI *ini, void *instance, void *store, const void *userData) |
| static void | parseInheritableModule (INI *ini, void *instance, void *store, const void *userData) |
| static void | OverrideableByLikeKind (INI *ini, void *instance, void *store, const void *userData) |
| static void | parseMaxSimultaneous (INI *ini, void *instance, void *store, const void *userData) |
Definition of a thing template to read from our game data framework
Definition at line 348 of file ThingTemplate.h.
| ThingTemplate::ThingTemplate | ( | ) |
Definition at line 989 of file ThingTemplate.cpp.
calculate how much money it will take the given player to build this unit
NOTE that we're not paying attention to m_override here, instead the portions that retrieve template data values use the get() wrappers, which DO pay attention to the override values
Definition at line 1532 of file ThingTemplate.cpp.
calculate how long (in logic frames) it will take the given player to build this unit
NOTE that we're not paying attention to m_override here, instead the portions that retrieve template data values use the get() wrappers, which DO pay attention to the override values
Definition at line 1548 of file ThingTemplate.cpp.
| Bool ThingTemplate::canPossiblyHaveAnyWeapon | ( | ) | const |
Definition at line 1379 of file ThingTemplate.cpp.
| void ThingTemplate::copyFrom | ( | const ThingTemplate * | that | ) |
Definition at line 1219 of file ThingTemplate.cpp.
| const ArmorTemplateSet * ThingTemplate::findArmorTemplateSet | ( | const ArmorSetFlags & | t | ) | const |
Definition at line 1365 of file ThingTemplate.cpp.
| const WeaponTemplateSet * ThingTemplate::findWeaponTemplateSet | ( | const WeaponSetFlags & | t | ) | const |
Definition at line 1371 of file ThingTemplate.cpp.
|
inline |
get vision range for Shroud ONLY (Design requested split)
Definition at line 430 of file ThingTemplate.h.
|
inline |
get vision range
Definition at line 429 of file ThingTemplate.h.
| AIUpdateModuleData * ThingTemplate::friend_getAIModuleInfo | ( | void | ) |
Definition at line 1053 of file ThingTemplate.cpp.
|
inline |
Used only by Skirmish AI. Everyone else should call calcCostToBuild.
Definition at line 586 of file ThingTemplate.h.
|
inline |
Definition at line 525 of file ThingTemplate.h.
|
inline |
Definition at line 545 of file ThingTemplate.h.
|
inline |
Definition at line 546 of file ThingTemplate.h.
|
inline |
Definition at line 547 of file ThingTemplate.h.
|
inline |
Definition at line 544 of file ThingTemplate.h.
|
inlineprotected |
Definition at line 630 of file ThingTemplate.h.
|
inline |
return uniform scaling
Definition at line 529 of file ThingTemplate.h.
|
inlineprotected |
Definition at line 632 of file ThingTemplate.h.
|
inline |
Definition at line 447 of file ThingTemplate.h.
| BuildableStatus ThingTemplate::getBuildable | ( | ) | const |
Definition at line 1416 of file ThingTemplate.cpp.
|
inline |
Definition at line 558 of file ThingTemplate.h.
|
inlineprotected |
Definition at line 628 of file ThingTemplate.h.
| const ThingTemplate * ThingTemplate::getBuildFacilityTemplate | ( | const Player * | player | ) | const |
return the BuildFacilityTemplate, if any.
if this template needs no build facility, null is returned.
if the template needs a build facility but the given player doesn't have any in existence, null will be returned.
if you pass null for player, we'll return the 'natural' build facility.
Definition at line 1403 of file ThingTemplate.cpp.
|
inlineprotected |
Definition at line 629 of file ThingTemplate.h.
|
inline |
Definition at line 527 of file ThingTemplate.h.
|
inline |
Definition at line 452 of file ThingTemplate.h.
|
inline |
Definition at line 449 of file ThingTemplate.h.
|
inline |
Definition at line 615 of file ThingTemplate.h.
|
inline |
Definition at line 616 of file ThingTemplate.h.
|
inline |
Definition at line 588 of file ThingTemplate.h.
|
inline |
return radar priority from INI
Definition at line 417 of file ThingTemplate.h.
|
inline |
get the display color (used for the editor)
Definition at line 392 of file ThingTemplate.h.
|
inline |
|
inline |
Definition at line 448 of file ThingTemplate.h.
|
inline |
get the editor sorting
Definition at line 395 of file ThingTemplate.h.
|
inline |
Definition at line 550 of file ThingTemplate.h.
|
inline |
Definition at line 549 of file ThingTemplate.h.
Definition at line 460 of file ThingTemplate.h.
Definition at line 459 of file ThingTemplate.h.
|
inline |
Definition at line 597 of file ThingTemplate.h.
|
inline |
Definition at line 598 of file ThingTemplate.h.
|
inline |
Definition at line 422 of file ThingTemplate.h.
|
inline |
Definition at line 424 of file ThingTemplate.h.
|
inline |
get us the table to parse the fields for thing templates
Definition at line 591 of file ThingTemplate.h.
|
inline |
return uniform scaling
Definition at line 530 of file ThingTemplate.h.
|
inline |
If this is not NAMEKEY_INVALID, it indicates that all the templates which return the same name key should be counted as the same "type" when looking at getMaxSimultaneousOfType(). For instance, a Scud Storm and a Scud Storm rebuild hole will return the same value, so that the player can't build another Scud Storm while waiting for the rebuild hole to start rebuilding
Definition at line 518 of file ThingTemplate.h.
| UnsignedInt ThingTemplate::getMaxSimultaneousOfType | ( | ) | const |
Definition at line 1464 of file ThingTemplate.cpp.
|
inline |
return the name of this template
Definition at line 389 of file ThingTemplate.h.
|
inline |
Definition at line 563 of file ThingTemplate.h.
|
inline |
Definition at line 445 of file ThingTemplate.h.
| const FXList * ThingTemplate::getPerUnitFX | ( | const AsciiString & | fxName | ) | const |
Definition at line 1426 of file ThingTemplate.cpp.
| const AudioEventRTS * ThingTemplate::getPerUnitSound | ( | const AsciiString & | soundName | ) | const |
Definition at line 1444 of file ThingTemplate.cpp.
|
inline |
Definition at line 595 of file ThingTemplate.h.
|
inline |
Definition at line 562 of file ThingTemplate.h.
|
inline |
Definition at line 420 of file ThingTemplate.h.
|
inline |
Definition at line 556 of file ThingTemplate.h.
|
inline |
Definition at line 592 of file ThingTemplate.h.
|
inline |
Definition at line 451 of file ThingTemplate.h.
|
inline |
Definition at line 441 of file ThingTemplate.h.
|
inline |
Definition at line 442 of file ThingTemplate.h.
|
inline |
Definition at line 439 of file ThingTemplate.h.
|
inline |
Definition at line 440 of file ThingTemplate.h.
|
inline |
Definition at line 444 of file ThingTemplate.h.
|
inline |
Definition at line 438 of file ThingTemplate.h.
|
inline |
Definition at line 433 of file ThingTemplate.h.
Definition at line 1392 of file ThingTemplate.cpp.
|
inline |
Definition at line 489 of file ThingTemplate.h.
|
inline |
Definition at line 490 of file ThingTemplate.h.
|
inline |
Definition at line 491 of file ThingTemplate.h.
|
inline |
Definition at line 492 of file ThingTemplate.h.
|
inline |
Definition at line 495 of file ThingTemplate.h.
|
inline |
Definition at line 498 of file ThingTemplate.h.
|
inline |
Definition at line 499 of file ThingTemplate.h.
|
inline |
Definition at line 503 of file ThingTemplate.h.
|
inline |
Definition at line 487 of file ThingTemplate.h.
|
inline |
Definition at line 488 of file ThingTemplate.h.
|
inline |
Definition at line 485 of file ThingTemplate.h.
|
inline |
Definition at line 486 of file ThingTemplate.h.
|
inline |
Definition at line 496 of file ThingTemplate.h.
|
inline |
Definition at line 497 of file ThingTemplate.h.
|
inline |
Definition at line 501 of file ThingTemplate.h.
|
inline |
Definition at line 502 of file ThingTemplate.h.
|
inline |
Definition at line 500 of file ThingTemplate.h.
|
inline |
Definition at line 494 of file ThingTemplate.h.
|
inline |
Definition at line 493 of file ThingTemplate.h.
|
inline |
return uniform scaling
Definition at line 531 of file ThingTemplate.h.
|
inline |
Definition at line 538 of file ThingTemplate.h.
|
inline |
return a unique identifier suitable for identifying this ThingTemplate on machines playing across the net. this should be considered a Magic Cookie and used only for net traffic or similar sorts of things. To convert an id back to a ThingTemplate, use ThingFactory::findByID(). Note that 0 is always an invalid id. NOTE that we are not referencing m_override here because even though we actually have multiple templates here representing overrides, we still only conceptually have one template and want to always use one single pointer for comparisons of templates. However, even if we did reference m_override the IDs would be the same for each one since every override first COPIES data from the current/parent template data.
Definition at line 386 of file ThingTemplate.h.
|
inline |
Definition at line 510 of file ThingTemplate.h.
|
inline |
Definition at line 618 of file ThingTemplate.h.
|
inline |
Definition at line 468 of file ThingTemplate.h.
|
inline |
Definition at line 483 of file ThingTemplate.h.
|
inline |
Definition at line 482 of file ThingTemplate.h.
|
inline |
Definition at line 472 of file ThingTemplate.h.
|
inline |
Definition at line 481 of file ThingTemplate.h.
|
inline |
Definition at line 469 of file ThingTemplate.h.
|
inline |
Definition at line 470 of file ThingTemplate.h.
|
inline |
Definition at line 477 of file ThingTemplate.h.
|
inline |
Definition at line 466 of file ThingTemplate.h.
|
inline |
Definition at line 484 of file ThingTemplate.h.
|
inline |
Definition at line 476 of file ThingTemplate.h.
|
inline |
Definition at line 467 of file ThingTemplate.h.
|
inline |
Definition at line 473 of file ThingTemplate.h.
|
inline |
Definition at line 465 of file ThingTemplate.h.
|
inline |
Definition at line 471 of file ThingTemplate.h.
|
inline |
Definition at line 475 of file ThingTemplate.h.
|
inline |
Definition at line 474 of file ThingTemplate.h.
|
inline |
Definition at line 620 of file ThingTemplate.h.
|
inlineprotected |
Definition at line 633 of file ThingTemplate.h.
|
inline |
Definition at line 505 of file ThingTemplate.h.
|
inline |
Definition at line 409 of file ThingTemplate.h.
|
inline |
Definition at line 426 of file ThingTemplate.h.
| Bool ThingTemplate::isBuildableItem | ( | void | ) | const |
Definition at line 1522 of file ThingTemplate.cpp.
|
inline |
Definition at line 594 of file ThingTemplate.h.
|
inline |
Definition at line 462 of file ThingTemplate.h.
| Bool ThingTemplate::isEquivalentTo | ( | const ThingTemplate * | tt | ) | const |
Definition at line 1478 of file ThingTemplate.cpp.
|
inline |
Definition at line 463 of file ThingTemplate.h.
|
inline |
return true iff the template has the specified kindOf flag set.
Definition at line 398 of file ThingTemplate.h.
|
inline |
convenience for doing multiple kindof testing at once.
Definition at line 404 of file ThingTemplate.h.
|
inline |
Definition at line 604 of file ThingTemplate.h.
|
inline |
Definition at line 461 of file ThingTemplate.h.
|
staticprotected |
mark the module(s) as being "VverrideableByLikeKind". default module will be replaced by any of the exact same class
Definition at line 834 of file ThingTemplate.cpp.
|
staticprotected |
Parse modules to add to the existing set of modules.
Definition at line 739 of file ThingTemplate.cpp.
|
staticprotected |
Table for parsing the object fields
Definition at line 900 of file ThingTemplate.cpp.
|
staticprotected |
mark the module(s) as being "Inheritable".
Definition at line 815 of file ThingTemplate.cpp.
|
staticprotected |
Definition at line 619 of file ThingTemplate.cpp.
|
staticprotected |
Definition at line 957 of file ThingTemplate.cpp.
|
staticprotected |
Definition at line 510 of file ThingTemplate.cpp.
|
staticprotected |
Definition at line 691 of file ThingTemplate.cpp.
|
staticprotected |
Parse Additional per unit sounds such as TankTurretMove and TankTurretMoveLoop.
Definition at line 722 of file ThingTemplate.cpp.
|
staticprotected |
Definition at line 659 of file ThingTemplate.cpp.
|
staticprotected |
Parse modules to remove from the existing set of modules.
Definition at line 758 of file ThingTemplate.cpp.
|
staticprotected |
Replace the existing tagged modules with the new modules.
Definition at line 783 of file ThingTemplate.cpp.
|
staticprotected |
Definition at line 928 of file ThingTemplate.cpp.
|
protected |
Remove the module whose tag matches moduleToRemove.
Definition at line 857 of file ThingTemplate.cpp.
| void ThingTemplate::resolveNames | ( | ) |
called by ThingFactory after all templates have been loaded.
Definition at line 1254 of file ThingTemplate.cpp.
| void ThingTemplate::setCopiedFromDefault | ( | ) |
Definition at line 1236 of file ThingTemplate.cpp.
|
inline |
Definition at line 602 of file ThingTemplate.h.
| void ThingTemplate::validate | ( | ) |
Definition at line 1142 of file ThingTemplate.cpp.
|
protected |
Definition at line 1069 of file ThingTemplate.cpp.