59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
// Filename: onAttribute.h
|
|
// Created by: drose (22Mar00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef ONATTRIBUTE_H
|
|
#define ONATTRIBUTE_H
|
|
|
|
#include <pandabase.h>
|
|
|
|
#include "nodeAttribute.h"
|
|
|
|
class OnTransition;
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// Class : OnAttribute
|
|
// Description :
|
|
////////////////////////////////////////////////////////////////////
|
|
class EXPCL_PANDA OnAttribute : public NodeAttribute {
|
|
protected:
|
|
INLINE OnAttribute();
|
|
INLINE OnAttribute(const OnAttribute ©);
|
|
INLINE void operator = (const OnAttribute ©);
|
|
|
|
public:
|
|
virtual void output(ostream &out) const;
|
|
virtual void write(ostream &out, int indent_level = 0) const;
|
|
|
|
protected:
|
|
virtual int internal_compare_to(const NodeAttribute *other) const;
|
|
|
|
virtual void set_value_from(const OnTransition *other)=0;
|
|
virtual int compare_values(const OnAttribute *other) const=0;
|
|
virtual void output_value(ostream &out) const=0;
|
|
virtual void write_value(ostream &out, int indent_level) const=0;
|
|
|
|
public:
|
|
virtual TypeHandle get_type() const {
|
|
return get_class_type();
|
|
}
|
|
virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
|
|
static TypeHandle get_class_type() {
|
|
return _type_handle;
|
|
}
|
|
static void init_type() {
|
|
NodeAttribute::init_type();
|
|
register_type(_type_handle, "OnAttribute",
|
|
NodeAttribute::get_class_type());
|
|
}
|
|
|
|
private:
|
|
static TypeHandle _type_handle;
|
|
friend class OnTransition;
|
|
};
|
|
|
|
#include "onAttribute.I"
|
|
|
|
#endif
|