Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9121 in orxonox.OLD for branches/presentation/src


Ignore:
Timestamp:
Jul 4, 2006, 1:42:57 PM (18 years ago)
Author:
hdavid
Message:

branches/presentation: hover scriptable

Location:
branches/presentation/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/skydome.cc

    r9006 r9121  
    128128void Skydome::generateSkyPlane(int divisions, float planetRadius, float atmosphereRadius, float hTile, float vTile)
    129129{
    130   PRINTF(0)("Generating a sky plane");
     130  PRINTF(0)("Generating a sky plane\n");
    131131
    132132  // Make sure our vertex array is clear
  • branches/presentation/src/world_entities/space_ships/hover.cc

    r8719 r9121  
    3434CREATE_FACTORY(Hover, CL_HOVER);
    3535
     36#include "script_class.h"
     37CREATE_SCRIPTABLE_CLASS(Hover, CL_HOVER,
     38                        addMethod("hasPlayer", ExecutorLua0ret<Playable,bool>(&Playable::hasPlayer))
     39                        //Coordinates
     40                        ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
     41                        ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     42                        ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     43                        ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     44                       );
     45                       
    3646/**
    3747 *  destructs the hover, deletes alocated memory
Note: See TracChangeset for help on using the changeset viewer.