Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test.c File Reference

Go to the source code of this file.

Functions

void t0 ()
 
void t1 ()
 
void loop ()
 
void loop2 ()
 
void gram (void d)
 
float first (int a, float b)
 
float second (int a1, float d3)
 

Variables

module test
 
import a1
 
int arss =4.3
 
int m1
 
float sdm2
 
int m321
 
bool blah
 
float v
 
float blubb
 
float schnupf
 
float blahs
 
float df
 
float a
 
float vf
 
float b
 
float c
 

Function Documentation

float first ( int  a,
float  b 
)

Definition at line 92 of file test.c.

References a, b, c, and d.

Referenced by Universe::Generate2(), GetRandomBarMessage(), StarSystemGent::MakeBigUnit(), ParseSizeFlags(), BaseInterface::Room::Talk::Talk(), and UpdateTime().

92  {
93  _io.three(:s1="flubb"; :s2="blah" ;a,b,c,d);
94  _io.qu();
95  _io.js1(a);
96  _io.js2(a,b);
97  _io.js3(:s1="blah";a,b,c);
98  _io.js4(:s1="blah";:s2="fghdg";a,b,c);
99  _io.js5(:s1="fsjf";);
100 
101  return a;
102  blubb=four(a);
103  };
void gram ( void  d)

Definition at line 90 of file test.c.

90 {};
void loop ( )

Definition at line 48 of file test.c.

References blah.

Referenced by loadsounds(), Audio::SourceTemplate::setAttenuated(), Audio::SourceTemplate::setLooping(), and Audio::Source::setLooping().

48  {
49  if(a){
50  int blah;
51  };
52 
53  if(a){
54  int sdhfj;
55  }
56  else {
57  int sdjk;
58  };
59 
60  if(a){
61  int sdhfj;
62  }
63  else if(b) {
64  int sdjk;
65  };
66 
67  };
void loop2 ( )

Definition at line 69 of file test.c.

References blah.

69  {
70  if(a){
71  int blah;
72  }
73 
74  if(a){
75  int sdhfj;
76  }
77  else {
78  int sdjk;
79  }
80 
81  if(a){
82  int sdhfj;
83  }
84  else if(b) {
85  int sdjk;
86  };
87 
88  };
float second ( int  a1,
float  d3 
)

Definition at line 106 of file test.c.

Referenced by anonymous_namespace{autodocking.cpp}::FindDockingPort(), and GalaxyXML::Galaxy::getPlanetVariable().

106  {
107  int hallo;
108  float fasel;
109 
110  if(whatever==soever) {
111  int h2;
112  float b3;
113 
114  b3=13.3;
115  b34=(sowhat==nover);
116 
117  if(nowhat+never==323.4){
118  return;
119  }
120  else{
121  }
122 
123  a46=34.2 + 3.4;
124 
125  a3784=37+4278.54*dh+4.5;
126  }
127  else {
128  int h3;
129  float h4;
130  };
131 
132  };
void t0 ( )

Definition at line 14 of file test.c.

References a, b, c, d, e, f, g, q, x, and y.

Referenced by createTexture().

14  {
15  float x=a*b+c*d+e;
16  float y=a*b+c+d*e/f-g*q;
17 
18  float x2=b+!a*b+!c-d;
19  float x3=!a+b==!b;
20 
21  };
void t1 ( )

Definition at line 23 of file test.c.

References a, b, and blah.

Referenced by computeTangentspace(), Background::Draw(), Mesh::LoadMeshes(), Unit::UpdatePhysics(), and GameNebula::UpdatePhysics2().

23  {
24  int blah="whatever";
25  a="whatever"+"nothing"+_io.print("never","ever");
26 
27  float b1=a*b;
28  float b2:=3.4;
29  a->push(a,b,cd);
30 
31  };

Variable Documentation

float a

Definition at line 46 of file test.c.

Referenced by GamePlanet::AddAtmosphere(), AddMounts(), AddSubUnits(), AvgSystems(), Box::Box(), ROLES::buildroles(), Unit::calculate_extent(), Functor< ShipCommands >::Call(), VegaConfig::checkColor(), ChooseNavPoint(), StarSystemGent::clamp01(), ConvertPalette(), createObjects(), csMax(), csMin(), Atmosphere::Draw(), DrawFrustum(), GameStarSystem::DrawJumpStars(), XMLSupport::EnumMap::EnumMap(), EnvironmentMapGeneratorMain(), first(), VSRandom::genrand_res53(), JoyStick::GetJoyStick(), GetVolatileAni(), GFXEndPick(), GFXFrustum(), GFXGetZPerspective(), globQueryShell(), InitKB(), InitMouse(), intmax(), StarSystemGent::LengthOfYear(), linear_interpolate_uncapped(), LoadMission(), StarSystemGent::MakePlanet(), max(), min(), min_(), modifyDeadZone(), modifyExponent(), mymax(), mymin(), mysqr(), VertexCompare::operator()(), stdext::hash< void * >::operator()(), stdext::hash< const void * >::operator()(), stdext::hash< const Unit * >::operator()(), stdext::hash< std::pair< Unit *, Unit * > >::operator()(), lightsort::operator()(), PriceSort::operator()(), UnitContainer::operator=(), Mesh::PostProcessLoading(), ProcessKB(), Mesh::ProcessUndrawnMeshes(), Mesh::ProcessZFarMeshes(), Resizable< GFXColorVertex >::push_back(), Resizable< GFXColorVertex >::push_back_nocheck(), Unit::querySphereNoRecurse(), SaveGame::ReadSavedPackets(), GFXVertexList::RefreshDisplayList(), RestoreGlowMapState(), RestoreKB(), RingMesh::RingMesh(), SetupSpecMapFirstPass(), SphereMesh::SphereMesh(), CS::Swap(), t0(), t1(), TMax(), TMin(), TSwap(), UnsaturatedColor(), Unit::UpAndDownGrade(), Atmosphere::Update(), UpgradeBoolval(), GameStarSystem::VolitalizeJumpAnimation(), and Atmosphere::~Atmosphere().

import a1

Definition at line 9 of file test.c.

Referenced by ContinuousTerrain::Collide(), decode_dxt5_alpha(), and Unit::InsideCollideTree().

int arss =4.3

Definition at line 12 of file test.c.

float blahs

Definition at line 46 of file test.c.

float blubb

Definition at line 46 of file test.c.

float c

Definition at line 46 of file test.c.

Referenced by NetBuffer::addChar(), VsnetDownload::Server::Manager::addCmdDownload(), ZoneMgr::addDamage(), NetBuffer::addType(), Unit::ApplyDamage(), Unit::attackPreference(), buyShip(), Functor< ShipCommands >::Call(), VSFileSystem::ChangeToProgramDirectory(), BaseInterface::Room::Launch::Click(), BaseInterface::Room::Eject::Click(), Beam::Collide(), BaseComputer::configureUpgradeCommitControls(), createTexture(), DoDockingOps(), TextInputDisplay::draw(), GamePlanet::Draw(), Mesh::Draw(), DrawFrustum(), FireKeyboard::Execute(), first(), XMLSupport::floattostringh(), ForwardFileBytes(), Transformation::from_matrix(), Pilot::getAnger(), NetBuffer::getChar(), Matrix3x3::GetCol(), Matrix4x4::GetCol(), Packet::getData(), Packet::getSendBuffer(), NetBuffer::getString(), NetBuffer::getType(), GFXFogColor(), GFXFrustum(), globQueryShell(), UnitUtil::hasCargo(), HelpOut(), Unit::ImportPartList(), UnitUtil::incrementCargo(), VSFileSystem::InitDataDirectory(), CommunicatingAI::InitiateContrabandSearch(), BaseComputer::loadMissionsMasterList(), VsnetDownload::Server::LOCALCONST_DEF(), main(), VsnetDownload::Client::Manager::Manager(), matchCargoToWeapon(), XMLSupport::EnumMap::Pair::Pair(), VsnetDownload::RecvCmdDownload::parse(), parseFormatFloat(), VsnetDownload::Client::Manager::processCmdDownload(), Order::ProcessCommunicationMessages(), Orders::AggressiveAI::ProcessCurrentFgDirective(), Logo::ProcessDrawQueue(), Beam::ProcessDrawQueue(), Unit::querySphereNoRecurse(), ReadIntSpace(), UnitUtil::RecomputeUnitUpgrades(), Unit::RepairUpgradeCargo(), RequestClearence(), s_testBigEndian(), scanChar(), ScoreKill(), NewButton::setBorderColor(), Briefing::SetCloak(), Camera::setCockpitOffset(), Matrix3x3::SetCol(), Matrix4x4::SetCol(), Window::setColor(), Control::setColor(), PaintText::setColor(), NewButton::setDownColor(), NewButton::setDownTextColor(), NewButton::setEndBorderColor(), NewButton::setHighlightColor(), Picker::setHighlightColor(), Picker::setHighlightTextColor(), Control::setOutlineColor(), Window::setOutlineColor(), SaveGame::SetSavedCredits(), Picker::setSelectionColor(), Picker::setSelectionTextColor(), SimplePickerCell::setTextColor(), Control::setTextColor(), NewButton::setTextHighlightColor(), shiftdown(), shiftup(), t0(), CommunicatingAI::TerminateContrabandSearch(), TextPlane::TextPlane(), TryDock(), TSwap(), Unit::unitRole(), Unit::UpAndDownGrade(), CommunicatingAI::UpdateContrabandSearch(), GameUnit< UnitType >::UpdatePhysics2(), and Unit::WriteUnitString().

float df

Definition at line 46 of file test.c.

int m321

Definition at line 37 of file test.c.

float schnupf

Definition at line 46 of file test.c.

float sdm2

Definition at line 35 of file test.c.

module test
Initial value:
{
globals {
class int g1,g2,g5,g6;
float g3;
object g4;
}

Definition at line 1 of file test.c.

Referenced by mmoc::connectTo(), HaloSystem::Draw(), main(), NearestSystem(), ScanOptions(), Orders::FireAt::ShouldFire(), and NetServer::start().

float v

Definition at line 46 of file test.c.

Referenced by Unit::AddVelocity(), AfterburnTurnAway(), Angle(), AUDAdjustSound(), Unit::AutoPilotToErrorMessage(), PointStarVlist::BeginDrawState(), CalculateBalancedDecelTime(), CalculateDecelTime(), checkedVisited(), NavPath::checkForCycles(), FlyByKeyboard::clamp_axis(), PathManager::dfsVisit(), LocationSelect::Draw(), ParticleTrail::DrawAndUpdate(), PacketMem::dump(), GameVegaConfig::GameVegaConfig(), NetBuffer::getQVector(), GetSystemColor(), NetBuffer::getVector(), GFXBoxInFrustum(), HSV_To_RGB(), CommunicatingAI::InitiateContrabandSearch(), InitJoystick(), IdentityTransform::InvTransform(), CriteriaContains::isDestination(), FlyByKeyboard::KeyboardRight(), FlyByKeyboard::KeyboardRollRight(), FlyByKeyboard::KeyboardUp(), LaunchOneParticle(), NormalizeNormals(), NormalizeTangents(), csTransform::Other2ThisRelative(), PacketMem::PacketMem(), XMLSupport::EnumMap::Pair::Pair(), Mesh::PostProcessLoading(), GFXSphereVertexList::ProceduralModification(), ProcessJoystick(), quadsquare::RecomputeErrorAndLighting(), FlyByKeyboard::reduce_axis(), Mount::ReplaceMounts(), Unit::ResolveForces(), gfx_light::SendGLPosition(), Unit::SetAngularVelocity(), Mount::SetMountPosition(), csTransform::SetO2TTranslation(), SaveGame::SetPlayerLocation(), Orders::FormUp::SetPos(), Orders::FormUpToOwner::SetPos(), PhysicsSystem::SetVelocity(), Unit::SetVelocity(), ShiftPalette(), SphereCollider::SphereTriOverlap(), csBox3::StartBoundingBox(), csReversibleTransform::This2Other(), csReversibleTransform::This2OtherRelative(), IdentityTransform::Transform(), Translate(), TurnAway(), visitSystemHelp(), WarpMatrixForCollisions(), and XMLType::XMLType().

float vf

Definition at line 46 of file test.c.

Referenced by GFXCreateProgramNoCache().