#include <C4PXS.h>
Public Member Functions | |
C4PXSSystem () | |
~C4PXSSystem () | |
void | Default () |
void | Clear () |
void | Execute () |
void | Draw (C4TargetFacet &cgo) |
void | Cast (int32_t mat, int32_t num, int32_t tx, int32_t ty, int32_t level) |
bool | Create (int32_t mat, C4Real ix, C4Real iy, C4Real ixdir=Fix0, C4Real iydir=Fix0) |
bool | Load (C4Group &hGroup) |
bool | Save (C4Group &hGroup) |
int32_t | GetCount () const |
int32_t | GetCount (int32_t mat) const |
int32_t | GetCount (int32_t mat, int32_t x, int32_t y, int32_t wdt, int32_t hgt) const |
Public Attributes | |
size_t | Count |
Protected Member Functions | |
C4PXS * | New () |
Protected Attributes | |
C4PXS | PXS [PXSMax] |
C4PXSSystem::C4PXSSystem | ( | ) |
C4PXSSystem::~C4PXSSystem | ( | ) |
void C4PXSSystem::Cast | ( | int32_t | mat, |
int32_t | num, | ||
int32_t | tx, | ||
int32_t | ty, | ||
int32_t | level | ||
) |
Definition at line 309 of file C4PXS.cpp.
References Create(), itofix(), and Random().
Referenced by C4Landscape::P::BlastMaterial2Objects().
void C4PXSSystem::Clear | ( | ) |
Definition at line 163 of file C4PXS.cpp.
References Count.
Referenced by C4Game::Clear(), Load(), and ~C4PXSSystem().
bool C4PXSSystem::Create | ( | int32_t | mat, |
C4Real | ix, | ||
C4Real | iy, | ||
C4Real | ixdir = Fix0 , |
||
C4Real | iydir = Fix0 |
||
) |
Definition at line 175 of file C4PXS.cpp.
References C4PXS::Mat, MatValid(), New(), C4PXS::x, C4PXS::xdir, C4PXS::y, and C4PXS::ydir.
Referenced by Cast(), C4Landscape::CheckInstability(), C4Landscape::InsertMaterial(), C4MaterialMap::mrfConvert(), and C4Landscape::P::ShakeFreePix().
void C4PXSSystem::Default | ( | ) |
Definition at line 158 of file C4PXS.cpp.
References Count.
Referenced by C4PXSSystem(), and C4Game::Default().
void C4PXSSystem::Draw | ( | C4TargetFacet & | cgo | ) |
Definition at line 198 of file C4PXS.cpp.
References Abs(), C4BltVertex::color, Config, C4Rect::Contains(), Count, DwTo4UB(), C4Rect::Enlarge(), fixtof(), fixtoi(), C4BltVertex::ftx, C4BltVertex::fty, CStdPalette::GetClr(), C4Landscape::GetPal(), C4Facet::GetPhaseNum(), C4Config::Graphics, C4Facet::Hgt, C4Surface::Hgt, Landscape, C4MaterialMap::Map, C4PXS::Mat, Mat2PixColDefault(), MaterialMap, MNone, pDraw, C4Draw::PerformMultiLines(), C4Draw::PerformMultiPix(), C4Draw::PerformMultiTris(), PXS, C4Material::PXSFace, C4ConfigGraphics::PXSGfx, C4MaterialCore::PXSGfxRt, C4MaterialCore::PXSGfxSize, C4Facet::Surface, C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4Surface::texture, C4BltVertex::tx, C4TargetRect::tx, C4BltVertex::ty, C4TargetRect::ty, C4Facet::Wdt, C4Surface::Wdt, C4Facet::X, C4PXS::x, C4PXS::xdir, C4Facet::Y, C4PXS::y, C4PXS::ydir, and z.
Referenced by C4Viewport::Draw().
void C4PXSSystem::Execute | ( | ) |
|
inline |
int32_t C4PXSSystem::GetCount | ( | int32_t | mat | ) | const |
int32_t C4PXSSystem::GetCount | ( | int32_t | mat, |
int32_t | x, | ||
int32_t | y, | ||
int32_t | wdt, | ||
int32_t | hgt | ||
) | const |
bool C4PXSSystem::Load | ( | C4Group & | hGroup | ) |
Definition at line 358 of file C4PXS.cpp.
References C4Group::AccessEntry(), C4CFN_PXS, Clear(), Count, FLOAT_TO_FIXED(), C4PXS::Mat, MNone, PXS, PXSMax, C4Group::Read(), C4PXS::x, C4PXS::xdir, C4PXS::y, and C4PXS::ydir.
|
protected |
bool C4PXSSystem::Save | ( | C4Group & | hGroup | ) |
Definition at line 325 of file C4PXS.cpp.
References C4Config::AtTempPath(), C4CFN_PXS, C4CFN_TempPXS, CStdFile::Close(), Config, Count, CStdFile::Create(), C4Group::Delete(), C4Group::Move(), PXS, and CStdFile::Write().
Referenced by C4Game::LoadScenarioSection().
size_t C4PXSSystem::Count |