Ignore:
Timestamp:
05/29/18 16:24:39 (6 years ago)
Author:
Maciej Komosinski
Message:

Code formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/neuro/impl/neuroimpl-body-sdk.h

    r288 r791  
    88#include <frams/neuro/neuroimpl.h>
    99
    10 class NI_Gyro: public NeuroImpl
     10class NI_Gyro : public NeuroImpl
    1111{
    1212public:
    13 NeuroImpl* makeNew(){return new NI_Gyro();} // for NeuroFactory
    14 int lateinit() {if (!neuro->joint) return 0; simorder=0; return 1;}
    15 void go() {setState(0);}
     13        NeuroImpl* makeNew(){ return new NI_Gyro(); } // for NeuroFactory
     14        int lateinit() { if (!neuro->joint) return 0; simorder = 0; return 1; }
     15        void go() { setState(0); }
    1616};
    1717
    1818extern ParamEntry NI_Touch_tab[];
    19 class NI_Touch: public NeuroImpl
     19class NI_Touch : public NeuroImpl
    2020{
    2121public:
    22 double range;
    23 NeuroImpl* makeNew(){return new NI_Touch();} // for NeuroFactory
    24 int lateinit() {if (!neuro->part) return 0; simorder=0; return 1;}
    25 void go() {setState(0);}
    26 NI_Touch():range(1) {paramentries=NI_Touch_tab;}
     22        double range;
     23        NeuroImpl* makeNew(){ return new NI_Touch(); } // for NeuroFactory
     24        int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; }
     25        void go() { setState(0); }
     26        NI_Touch() :range(1) { paramentries = NI_Touch_tab; }
    2727};
    2828
    29 class NI_Smell: public NeuroImpl
     29class NI_Smell : public NeuroImpl
    3030{
    3131public:
    32 NeuroImpl* makeNew(){return new NI_Smell();} // for NeuroFactory
    33 void go() {setState(0);}
    34 int lateinit() {if (!neuro->part) return 0; simorder=0; return 1;}
     32        NeuroImpl* makeNew(){ return new NI_Smell(); } // for NeuroFactory
     33        void go() { setState(0); }
     34        int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; }
    3535};
    3636
    3737extern ParamEntry NI_BendMuscle_tab[];
    38 class NI_BendMuscle: public NeuroImpl
     38class NI_BendMuscle : public NeuroImpl
    3939{
    4040public:
    41 double power,bendrange;
    42 NeuroImpl* makeNew(){return new NI_BendMuscle();} // for NeuroFactory
    43 NI_BendMuscle() {paramentries=NI_BendMuscle_tab;}
    44 int lateinit() {if (!neuro->joint) return 0; simorder=2; return 1;}
    45 void go() {}
     41        double power, bendrange;
     42        NeuroImpl* makeNew(){ return new NI_BendMuscle(); } // for NeuroFactory
     43        NI_BendMuscle() { paramentries = NI_BendMuscle_tab; }
     44        int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; }
     45        void go() {}
    4646};
    4747
    4848extern ParamEntry NI_RotMuscle_tab[];
    49 class NI_RotMuscle: public NeuroImpl
     49class NI_RotMuscle : public NeuroImpl
    5050{
    5151public:
    52 double power;
    53 NeuroImpl* makeNew(){return new NI_RotMuscle();} // for NeuroFactory
    54 NI_RotMuscle() {paramentries=NI_RotMuscle_tab;}
    55 int lateinit() {if (!neuro->joint) return 0; simorder=2; return 1;}
    56 void go() {}
     52        double power;
     53        NeuroImpl* makeNew(){ return new NI_RotMuscle(); } // for NeuroFactory
     54        NI_RotMuscle() { paramentries = NI_RotMuscle_tab; }
     55        int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; }
     56        void go() {}
    5757};
    5858
    5959extern ParamEntry NI_LinearMuscle_tab[];
    60 class NI_LinearMuscle: public NeuroImpl
     60class NI_LinearMuscle : public NeuroImpl
    6161{
    6262public:
    63 double power;
    64 NeuroImpl* makeNew(){return new NI_RotMuscle();} // for NeuroFactory
    65 NI_LinearMuscle() {paramentries=NI_RotMuscle_tab;}
    66 int lateinit() {if (!neuro->joint) return 0; simorder=2; return 1;}
    67 void go() {}
     63        double power;
     64        NeuroImpl* makeNew(){ return new NI_RotMuscle(); } // for NeuroFactory
     65        NI_LinearMuscle() { paramentries = NI_RotMuscle_tab; }
     66        int lateinit() { if (!neuro->joint) return 0; simorder = 2; return 1; }
     67        void go() {}
    6868};
    6969
    70 class NI_Sticky: public NeuroImpl
     70class NI_Sticky : public NeuroImpl
    7171{
    7272public:
    73 double power;
    74 NeuroImpl* makeNew(){return new NI_Sticky();} // for NeuroFactory
    75 int lateinit() {if (!neuro->part) return 0; simorder=0; return 1;}
    76 void go() {}
     73        double power;
     74        NeuroImpl* makeNew(){ return new NI_Sticky(); } // for NeuroFactory
     75        int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; }
     76        void go() {}
    7777};
    7878
    79 class NI_WaterDetect: public NeuroImpl
     79class NI_WaterDetect : public NeuroImpl
    8080{
    8181public:
    82 NeuroImpl* makeNew(){return new NI_WaterDetect();} // for NeuroFactory
    83 int lateinit() {if (!neuro->part) return 0; simorder=0; return 1;}
    84 void go() {setState(0);}
     82        NeuroImpl* makeNew(){ return new NI_WaterDetect(); } // for NeuroFactory
     83        int lateinit() { if (!neuro->part) return 0; simorder = 0; return 1; }
     84        void go() { setState(0); }
    8585};
    8686
    87 class NI_Energy: public NeuroImpl
     87class NI_Energy : public NeuroImpl
    8888{
    8989public:
    90 NeuroImpl* makeNew(){return new NI_Energy();} // for NeuroFactory
    91 void go() {setState(0);}
     90        NeuroImpl* makeNew(){ return new NI_Energy(); } // for NeuroFactory
     91        void go() { setState(0); }
    9292};
    9393
    9494#endif
    95 
Note: See TracChangeset for help on using the changeset viewer.