Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10511 in orxonox.OLD


Ignore:
Timestamp:
Jan 30, 2007, 7:39:47 PM (17 years ago)
Author:
snellen
Message:

corrected typo in worldentity → setVisibiliy to setVisibility

Location:
trunk/src/world_entities
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/creatures/fps_player.cc

    r10487 r10511  
    341341if( this->bJump)
    342342    {
    343       printf("dummyvariable:( %f, %f, %f) \n", this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ() );
     343      printf("panicGuy:runTo( %f, %f, %f ) \n", this->getAbsCoorX(), this->getAbsCoorY(), this->getAbsCoorZ() );
    344344      this->bJump = false;
    345345     }
  • trunk/src/world_entities/effects/blink.cc

    r10491 r10511  
    6363
    6464  this->bBoard = new Billboard;
    65   this->bBoard->setVisibiliy(true);
     65  this->bBoard->setVisibility(true);
    6666  this->bBoard->setTexture("textures/light/blink.png");
    6767
  • trunk/src/world_entities/effects/trail.cc

    r10368 r10511  
    9494
    9595  this->setAbsCoor(0, 0, 0);
    96   this->setVisibiliy(true);
     96  this->setVisibility(true);
    9797
    9898  this->nodeList[0] = (this->getAbsCoor());
  • trunk/src/world_entities/npcs/generic_npc.cc

    r10415 r10511  
    4848                        ->addMethod("playAnimation", Executor2<GenericNPC, lua_State*,int,int>(&GenericNPC::playAnimation))
    4949                        // Display
    50                         ->addMethod("hide", Executor0<WorldEntity, lua_State*>(&WorldEntity::hide))
    51                         ->addMethod("unhide", Executor0<WorldEntity, lua_State*>(&WorldEntity::unhide))
     50                        ->addMethod("setVisibility", Executor1<WorldEntity, lua_State*, bool>(&WorldEntity::setVisibility))
    5251                        // Coordinates
    5352                        ->addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX))
  • trunk/src/world_entities/npcs/npc.cc

    r10501 r10511  
    6565                        ->addMethod("fire", Executor0<NPC, lua_State*>(&NPC::fire))
    6666                        ->addMethod("pause", Executor1<WorldEntity, lua_State*, bool>(&WorldEntity::pauseTrack))
    67                         ->addMethod("hide", Executor0<WorldEntity, lua_State*>(&WorldEntity::hide))
    68                         ->addMethod("unhide", Executor0<WorldEntity, lua_State*>(&WorldEntity::unhide))
     67                        ->addMethod("setVisibility", Executor1<WorldEntity, lua_State*, bool>(&WorldEntity::setVisibility))
    6968                       );
    7069
  • trunk/src/world_entities/projectiles/acid_splash.cc

    r10502 r10511  
    5454  this->grid = new Wobblegrid( 5);
    5555  this->grid->setParent( this);
    56   this->grid->setVisibiliy(false);
     56  this->grid->setVisibility(false);
    5757
    5858
     
    9999  this->toList(OM_ENVIRON);
    100100 // this->unhide();
    101   this->grid->setVisibiliy(true);
     101  this->grid->setVisibility(true);
    102102
    103103  this->setPhysDamage(10);
     
    112112
    113113 // this->hide();
    114   this->grid->setVisibiliy(false);
     114  this->grid->setVisibility(false);
    115115  this->lifeCycle = 0.0;
    116116  this->toList(OM_NULL);
  • trunk/src/world_entities/projectiles/hbolt.cc

    r10505 r10511  
    5959  this->halo->setSize(.65, .65);
    6060  this->halo->setTexture("hbolt_halo2.png");
    61   this->halo->setVisibiliy(false);
     61  this->halo->setVisibility(false);
    6262
    6363}
     
    8686void HBolt::activate()
    8787{
    88   this->halo->setVisibiliy(true);
     88  this->halo->setVisibility(true);
    8989  this->origList = this->getOMListNumber();
    9090  this->toList(OM_ENVIRON);
     
    109109void HBolt::deactivate()
    110110{
    111   this->halo->setVisibiliy(false);
     111  this->halo->setVisibility(false);
    112112  assert (HBolt::explosionParticles != NULL);
    113113  HBolt::explosionParticles->removeEmitter(this->emitter);
  • trunk/src/world_entities/projectiles/lbolt.cc

    r10505 r10511  
    6262  this->halo->setSize(.35, .35);
    6363  this->halo->setTexture("hbolt_halo.png");
    64   this->halo->setVisibiliy(false);
     64  this->halo->setVisibility(false);
    6565
    6666
     
    9090void LBolt::activate()
    9191{
    92   this->halo->setVisibiliy(true);
     92  this->halo->setVisibility(true);
    9393  this->origList = this->getOMListNumber();
    9494  this->toList(OM_ENVIRON);
     
    115115  assert (LBolt::explosionParticles != NULL);
    116116  LBolt::explosionParticles->removeEmitter(this->emitter);
    117   this->halo->setVisibiliy(false);
     117  this->halo->setVisibility(false);
    118118  this->lifeCycle = 0.0;
    119119
  • trunk/src/world_entities/projectiles/spike_ball.cc

    r10505 r10511  
    6060  this->halo->setSize(2, 2);
    6161  this->halo->setTexture("hbolt_halo.png");
    62   this->halo->setVisibiliy(false);
     62  this->halo->setVisibility(false);
    6363
    6464  this->setFragments(26);
     
    9595void SpikeBall::activate()
    9696{
    97   this->halo->setVisibiliy(true);
     97  this->halo->setVisibility(true);
    9898  if (unlikely(SpikeBall::explosionParticles == NULL))
    9999  {
     
    142142void SpikeBall::deactivate()
    143143{
    144   this->halo->setVisibiliy(false);
     144  this->halo->setVisibility(false);
    145145  assert (SpikeBall::explosionParticles != NULL);
    146146  //SpikeBall::explosionParticles->removeEmitter(this->emitter);
  • trunk/src/world_entities/weather_effects/lightning_effect.cc

    r10415 r10511  
    107107        this->thunderBolt[i] = new Billboard(NULL);
    108108        this->thunderBolt[i]->setSize(this->width, this->height);
    109         this->thunderBolt[i]->setVisibiliy(false);
     109        this->thunderBolt[i]->setVisibility(false);
    110110    }
    111111
     
    176176    int i;
    177177    for (i = 0; i < 4; i++)
    178         this->thunderBolt[i]->setVisibiliy(false);
     178        this->thunderBolt[i]->setVisibility(false);
    179179
    180180}
     
    197197
    198198        // Start a flash & lightning cycle
    199         this->thunderBolt[0]->setVisibiliy(true);
     199        this->thunderBolt[0]->setVisibility(true);
    200200
    201201        // Lighten up environment
     
    209209
    210210    if( this->thunderBolt[0]->isVisible() && this->time > this->flashRisingTime*1/3 ) {
    211         this->thunderBolt[0]->setVisibiliy(false);
    212         this->thunderBolt[1]->setVisibiliy(true);
     211        this->thunderBolt[0]->setVisibility(false);
     212        this->thunderBolt[1]->setVisibility(true);
    213213    } else if( this->thunderBolt[1]->isVisible() && this->time > this->flashRisingTime*2/3 ) {
    214         this->thunderBolt[1]->setVisibiliy(false);
    215         this->thunderBolt[2]->setVisibiliy(true);
     214        this->thunderBolt[1]->setVisibility(false);
     215        this->thunderBolt[2]->setVisibility(true);
    216216
    217217    } else if( this->thunderBolt[2]->isVisible() && this->time > this->flashRisingTime) {
    218         this->thunderBolt[2]->setVisibiliy(false);
    219         this->thunderBolt[3]->setVisibiliy(true);
     218        this->thunderBolt[2]->setVisibility(false);
     219        this->thunderBolt[3]->setVisibility(true);
    220220    }
    221221
    222222    if( this->thunderBolt[3]->isVisible() && this->time > this->flashHoldTime) {
    223         this->thunderBolt[3]->setVisibiliy(false);
     223        this->thunderBolt[3]->setVisibility(false);
    224224
    225225        this->time = 0.0f;
  • trunk/src/world_entities/world_entity.cc

    r10498 r10511  
    717717void WorldEntity::draw(const Model* model) const
    718718{
     719  if(bVisible)
     720  {
    719721  glMatrixMode(GL_MODELVIEW);
    720722  glPushMatrix();
     
    733735
    734736  glPopMatrix();
     737  }
    735738}
    736739
  • trunk/src/world_entities/world_entity.h

    r10498 r10511  
    6464
    6565  /** @param visibility if the Entity should be visible (been draw) */
    66   void setVisibiliy (bool visibility) { this->bVisible = visibility; };
     66  void setVisibility (bool visibility) { this->bVisible = visibility; };
    6767  /** @returns true if the entity is visible, false otherwise */
    6868  inline bool isVisible() const { return this->bVisible; };
Note: See TracChangeset for help on using the changeset viewer.