Blender V2.61 - r43446
Functions

sca.c File Reference

#include <stdio.h>
#include <string.h>
#include <float.h>
#include "MEM_guardedalloc.h"
#include "DNA_controller_types.h"
#include "DNA_sensor_types.h"
#include "DNA_actuator_types.h"
#include "DNA_object_types.h"
#include "BLI_blenlib.h"
#include "BKE_utildefines.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BKE_library.h"
#include "BKE_sca.h"

Go to the source code of this file.

Functions

void free_sensor (bSensor *sens)
void free_sensors (ListBase *lb)
bSensorcopy_sensor (bSensor *sens)
void copy_sensors (ListBase *lbn, ListBase *lbo)
void init_sensor (bSensor *sens)
bSensornew_sensor (int type)
void unlink_controller (bController *cont)
void unlink_controllers (ListBase *lb)
void free_controller (bController *cont)
void free_controllers (ListBase *lb)
bControllercopy_controller (bController *cont)
void copy_controllers (ListBase *lbn, ListBase *lbo)
void init_controller (bController *cont)
bControllernew_controller (int type)
void unlink_actuator (bActuator *act)
void unlink_actuators (ListBase *lb)
void free_actuator (bActuator *act)
void free_actuators (ListBase *lb)
bActuatorcopy_actuator (bActuator *act)
void copy_actuators (ListBase *lbn, ListBase *lbo)
void init_actuator (bActuator *act)
bActuatornew_actuator (int type)
void clear_sca_new_poins_ob (Object *ob)
void clear_sca_new_poins (void)
void set_sca_new_poins_ob (Object *ob)
void set_sca_new_poins (void)
void sca_remove_ob_poin (Object *obt, Object *ob)
void sca_move_sensor (bSensor *sens_to_move, Object *ob, int move_up)
void sca_move_controller (bController *cont_to_move, Object *ob, int move_up)
void sca_move_actuator (bActuator *act_to_move, Object *ob, int move_up)
void link_logicbricks (void **poin, void ***ppoin, short *tot, short size)
void unlink_logicbricks (void **poin, void ***ppoin, short *tot)

Detailed Description

Definition in file sca.c.


Function Documentation

void clear_sca_new_poins ( void  )
void clear_sca_new_poins_ob ( Object ob)
bActuator* copy_actuator ( bActuator act) [read]
void copy_actuators ( ListBase lbn,
ListBase lbo 
)
bController* copy_controller ( bController cont) [read]
void copy_controllers ( ListBase lbn,
ListBase lbo 
)
bSensor* copy_sensor ( bSensor sens) [read]

Definition at line 73 of file sca.c.

References bSensor::data, bSensor::flag, bSensor::links, MEM_dupallocN(), and SENS_NEW.

Referenced by copy_sensors().

void copy_sensors ( ListBase lbn,
ListBase lbo 
)
void free_actuator ( bActuator act)
void free_actuators ( ListBase lb)

Definition at line 346 of file sca.c.

References BLI_remlink(), ListBase::first, and free_actuator().

Referenced by copymenu_logicbricks(), free_object(), and logicbricks_copy_exec().

void free_controller ( bController cont)

Definition at line 217 of file sca.c.

References bController::data, bController::links, and MEM_freeN().

Referenced by controller_remove_exec(), do_logic_buts(), and free_controllers().

void free_controllers ( ListBase lb)
void free_sensor ( bSensor sens)

Definition at line 55 of file sca.c.

References bSensor::data, bSensor::links, and MEM_freeN().

Referenced by do_logic_buts(), free_sensors(), and sensor_remove_exec().

void free_sensors ( ListBase lb)

Definition at line 63 of file sca.c.

References BLI_remlink(), ListBase::first, and free_sensor().

Referenced by copymenu_logicbricks(), free_object(), and logicbricks_copy_exec().

void init_actuator ( bActuator act)
void init_controller ( bController cont)
void init_sensor ( bSensor sens)
void link_logicbricks ( void **  poin,
void ***  ppoin,
short *  tot,
short  size 
)

Definition at line 824 of file sca.c.

References MEM_callocN(), MEM_freeN(), and NULL.

bActuator* new_actuator ( int  type) [read]
bController* new_controller ( int  type) [read]
bSensor* new_sensor ( int  type) [read]

Definition at line 174 of file sca.c.

References bSensor::flag, init_sensor(), MEM_callocN(), bSensor::name, SENS_SHOW, and bSensor::type.

Referenced by do_logic_buts(), and sensor_add_exec().

void sca_move_actuator ( bActuator act_to_move,
Object ob,
int  move_up 
)
void sca_move_controller ( bController cont_to_move,
Object ob,
int  move_up 
)
void sca_move_sensor ( bSensor sens_to_move,
Object ob,
int  move_up 
)
void sca_remove_ob_poin ( Object obt,
Object ob 
)
void set_sca_new_poins ( void  )

Definition at line 618 of file sca.c.

References G, Object::id, ID::next, and set_sca_new_poins_ob().

Referenced by copy_object_set_idnew(), and single_object_users().

void set_sca_new_poins_ob ( Object ob)
void unlink_actuator ( bActuator act)
void unlink_actuators ( ListBase lb)
void unlink_controller ( bController cont)
void unlink_controllers ( ListBase lb)
void unlink_logicbricks ( void **  poin,
void ***  ppoin,
short *  tot 
)

Definition at line 856 of file sca.c.

References MEM_freeN(), and NULL.

Referenced by unlink_actuator(), and unlink_controller().